Connecting Tech Pros Worldwide Forums | Help | Site Map

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

Peter
Guest
 
Posts: n/a
#1: Jul 20 '05
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>
************************************************

kaeli
Guest
 
Posts: n/a
#2: Jul 20 '05

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


In article <7c6871ca.0309171148.11a82086@posting.google.com >,
homicidalterrahawk@yahoo.com enlightened us with...[color=blue]
> 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)?
>[/color]
[color=blue]
> <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>
>[/color]


<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
-------------------------------------------------
Peter
Guest
 
Posts: n/a
#3: Jul 20 '05

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


Thanks for that kaeli:-)


kaeli <infinite.possibilities@NOSPAMatt.net> wrote in message news:<MPG.19d3629fcbbe711698985a@nntp.lucent.com>. ..[color=blue]
> In article <7c6871ca.0309171148.11a82086@posting.google.com >,
> homicidalterrahawk@yahoo.com enlightened us with...[color=green]
> > 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)?
> >[/color]
>[color=green]
> > <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>
> >[/color]
>
>
> <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
> -------------------------------------------------[/color]
Closed Thread


Similar JavaScript / Ajax / DHTML bytes