Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Easy Open Browser Instance Question

Status
Not open for further replies.

xenology

Programmer
May 22, 2002
51
US
Easy Open Browser Instance Question

I have learned that I can have the following in my initial Index.htm page...

<HTML>
<HEAD>
<script language=&quot;JavaScript&quot; type=&quot;text/javascript&quot;>
<!--
function window_onload() {
window.open('HomeFrame.htm','_self','menubar=no,scrollbars=yes,toolbar=yes,location=no,directories=no,resizable=yes,top=0,left=0);
}
//-->
</SCRIPT>
</HEAD>
<BODY LANGUAGE=javascript onload=&quot;return window_onload()&quot;>
<P> </P>
</BODY>
</HTML>

This opens a window just like I need it (toolbar only - no menu, address bar, etc.) Then when I tried adding a window.close(); right after it I get the standard security feature of &quot;The browser is trying to close this window...&quot; which I don't want to occur.

My question:
Is there anyway I can open the first window looking like the second window I open? (then I wouldn't have to call window.open at all)

thanks for any help!
 
Ooops. Sorry, where I have '_self' above in window.open it should be 'TestNewWindow'

the '_self' does not give me the window appearace i want.

thanks again
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top