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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IE hide toolbar, address bar and menu bar when html page is loaded.

Status
Not open for further replies.

grofaty

IS-IT--Management
Jan 16, 2003
370
0
0
SI
Hi,

Is there a posibility to hide a Toolbar, Address bar and Menu bar in IE when html page is displayed? I don't know somehow with java script or any other solution?

I would like to hide this three options because I would like to show as many text as posible on web page.

Thanks,
Grofaty
 
yes the
JavaScript:window.close();
is definatly right.

-----
Best Regards
Rob Kelsey
_________________________________________________________________
My computer makes me say: "Somebody stop the world, I want to get off!
 
Hi,

when I execute window.close() it prompts for closing. Can window be closed without prompting?

There is my code if somebody is interested in.

index.html:
Code:
<html>
<body>
	
<A HREF="javascript:void(0)"
onclick="document.open('welcome.html',
'welcome','height=720,width=990,location=no,menubar=no,status=no,scrollbars=no,resizable=yes');window.close()">
Open a new window</A>

</body>
<html>

welcome.html
Code:
<html>
<body>
Hello world!
</body>	
</html>

Thanks,
Grofaty
 
Hi,
I got it!!!!!!!!!!!!!!!!!

Here is the final code:

index.html
Code:
<html>
<body>
	
<A HREF="javascript:void(0)"
onclick="window.opener=null;window.open('welcome.html',
'welcome','height=720,width=990,location=no,menubar=no,status=no,scrollbars=no,resizable=yes');window.close();return false">
Open a new window</A>

</body>
<html>

welcome.html
Code:
<html>
<body>
Hello world!
</body>	
</html>
 
Hi,
little note:
Code:
;return false
is not required!
 
so its fixed now?

-----
Best Regards
Rob Kelsey
_________________________________________________________________
My computer makes me say: "Somebody stop the world, I want to get off!
 
The final code that works excellent is:
Code:
<html>
<body>
	
<A HREF="javascript:void(0)"
onclick="window.opener=null;window.open('welcome.html',
'welcome','height=720,width=990,location=no,menubar=no,status=no,scrollbars=no,resizable=yes');window.close()">
Open a new window</A>

</body>
<html>

Code:
<html>
<body>
Hello world!
</body>	
</html>


Will this code also work on Firefox and Netscape?
 
i dont know anything about firefox, but it should work on netscape, if it dosn't try the: ;return false statement.

-----
Best Regards
Rob Kelsey
_________________________________________________________________
My computer makes me say: "Somebody stop the world, I want to get off!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top