...

View Full Version : Spawning Browser @ size AND no Toolbars?



spinweb
07-09-2002, 03:50 PM
OK. I got my browser window spawning at tthe desired size.

i.e.,

<frameset rows="*,80%" onload="javascript:resizeTo(1100,875)">

Now I want to kill all the toolbars, etc.

As in this:

function POP_UP() {
window.open('page.html','_blank','toolbar=no,location=no,directories=no,status=yes,menubar=no,resiza ble=no,copyhistory=no,scrollbars=no,width=550,height=400');
}

The problem is I can't get the toolbars to be gone using onload vs. when spawned by a link.

Any help would be appreciated!
Rick

tamienne
07-09-2002, 04:01 PM
Call your new window something else besides "_blank". _blank is a reserved word.

spinweb
07-09-2002, 04:18 PM
What I want is one window, spawned by a link on the desktop, at a given size with no toolbars and other stuff.

This doesn't work (I guess onload isn't going to do the trick, as the windows properties have already been assigned by then and it won't take them away at that point):

<frameset rows="*,80%" onload="javascript:resizeTo(1100,875), 'toolbar=no,location=no,directories=no,status=yes,menubar=no,resizable=no,copyhistory=no,scrollbars= no'">

Rick

tamienne
07-09-2002, 04:50 PM
one way is to have a blank file that will spawn the window you want.

ie...

link on desktop to this...
<HTML>
<HEAD>
<OBJECT id=closes type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11">
<PARAM NAME="Command" VALUE="Close">
</OBJECT>
<SCRIPT>

<!--
function newWindow() {
window.open('page.html','popUp','toolbar=no,location=no,directories=no,status=yes,menubar=no,resizab le=no,copyhistory=no,scrollbars=no,width=550,height=400');


}
//-->
</SCRIPT>
</HEAD>
<BODY onLoad="newWindow();closes.Click();">
Welcome
</BODY>
</HTML>

spinweb
07-09-2002, 05:10 PM
That's nice....now how do I get the window with the "Welcome" text to close after 2 seconds?

Thanks!
Rick

tamienne
07-09-2002, 05:19 PM
try setTimeout(closes.Click(), 200)

it could be 2000, i never remember :)

spinweb
07-09-2002, 07:38 PM
I'm getting an error message after I added the code above.

Error: closes is not defined

Here's my code:

<HTML>
<HEAD>
<OBJECT id=closes type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11">
<PARAM NAME="Command" VALUE="Close">
</OBJECT>
<SCRIPT>

<!--
function newWindow() {
window.open('start.html','popUp','toolbar=no,location=no,directories=no,status=yes,menubar=no,resiza ble=no,copyhistory=no,scrollbars=no,width=1150,height=875');
}
//-->
</SCRIPT>
</HEAD>
<BODY onLoad="newWindow();closes.Click();">
Welcome!
</BODY>
</HTML>

Thanks,
Rick



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum