By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,400 Members | 1,334 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,400 IT Pros & Developers. It's quick & easy.

javascript to have a new browser window open maximized or aligned top

P: n/a
Hi, can someone help me with this code below. This code is for a page
that opens another page with a flash file on it. What code do I have
to add here to have the page with the flash file (QuickStart.htm) open
maximized or aligned to the top of the screen (if that's possible)?

At the moment, the page opens kind of in the middle or a little to low
on some screens and you have to manually move the page up to see the
whole flash movie.
Thanks,
Tony
************************************************

<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
<script language="JavaScript">
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);}

//-->
</script>
<title>Analyzer Demo</title>
</head>

<body>
<p><font color="#0033FF" size="+2">Analyzer</font></p>
<a href="javascript:MM_openBrWindow('QuickStart.htm', 'Interactive_Demo','status=yes,menubar=no,scrollba rs=no,resizable=no,width=900,height=680')"><em><b>
Start the demo</b></em></a>

</body>
</html>
************************************************
Jul 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
In article <7c**************************@posting.google.com >,
ho****************@yahoo.com enlightened us with...
Hi, can someone help me with this code below. This code is for a page
that opens another page with a flash file on it. What code do I have
to add here to have the page with the flash file (QuickStart.htm) open
maximized or aligned to the top of the screen (if that's possible)?
<a href="javascript:MM_openBrWindow('QuickStart.htm', 'Interactive_Demo','status=yes,menubar=no,scrollba rs=no,resizable=no,width=900,height=680')"><em><b>
Start the demo</b></em></a>

<a href="javascript:MM_openBrWindow
('QuickStart.htm','Interactive_Demo','status=yes,m enubar=no,scrollbars=n
o,resizable=no,width=900,height=680',top=0)">

tested in IE6 fine. didn't check other browsers.
-------------------------------------------------
~kaeli~
Hey, if you got it flaunt it! If you don't, stare
at someone who does. Just don't lick the TV screen,
it leaves streaks.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace
-------------------------------------------------
Jul 20 '05 #2

P: n/a
Thanks for that kaeli:-)
kaeli <in********************@NOSPAMatt.net> wrote in message news:<MP************************@nntp.lucent.com>. ..
In article <7c**************************@posting.google.com >,
ho****************@yahoo.com enlightened us with...
Hi, can someone help me with this code below. This code is for a page
that opens another page with a flash file on it. What code do I have
to add here to have the page with the flash file (QuickStart.htm) open
maximized or aligned to the top of the screen (if that's possible)?

<a href="javascript:MM_openBrWindow('QuickStart.htm', 'Interactive_Demo','status=yes,menubar=no,scrollba rs=no,resizable=no,width=900,height=680')"><em><b>
Start the demo</b></em></a>

<a href="javascript:MM_openBrWindow
('QuickStart.htm','Interactive_Demo','status=yes,m enubar=no,scrollbars=n
o,resizable=no,width=900,height=680',top=0)">

tested in IE6 fine. didn't check other browsers.
-------------------------------------------------
~kaeli~
Hey, if you got it flaunt it! If you don't, stare
at someone who does. Just don't lick the TV screen,
it leaves streaks.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace
-------------------------------------------------

Jul 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.