Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-11-2006, 12:44 PM   PM User | #1
sugata_bhar
New Coder

 
Join Date: Oct 2005
Location: Delhi
Posts: 76
Thanks: 0
Thanked 0 Times in 0 Posts
sugata_bhar is an unknown quantity at this point
how to hide all toolbars like yahoo,google etc onLoad

how to hide all toolbars like yahoo,google etc onLoad.
Actually window.open function cannot be taken into.I need the toolbars to be hidden in the beginning.
please help
sugata_bhar is offline   Reply With Quote
Old 08-11-2006, 09:33 PM   PM User | #2
RexxCrow
Regular Coder

 
RexxCrow's Avatar
 
Join Date: Jul 2006
Location: California
Posts: 275
Thanks: 6
Thanked 2 Times in 2 Posts
RexxCrow has a little shameless behaviour in the past
From what I understand that cant be done exactly, this is the solution I worked out with some help of course... Also note, that a window can't close w/o the users permission in most browers (so a confirm box might appear to as the user to close the window or not), FF will instead hide the window to the back of the newly focused window, browers with tabs will most likely let a script close it out from what I have seen. Also, if the user has a good popup blocker this may not work at all:


Inside the initial window at the JS HEAD area place:

ht=screen.availHeight-75;
wd=screen.availWidth;
window.onload=function(){
window.open("NewFile.HTML","NameOfNewWindow","width="+wd+",height="+ht+",top=0,left=0,resizable");


Inside the new window JS HEAD area place:

opener.close();self.focus();
RexxCrow is offline   Reply With Quote
Old 08-12-2006, 12:13 AM   PM User | #3
felgall
Master Coder

 
felgall's Avatar
 
Join Date: Sep 2005
Location: Sydney, Australia
Posts: 5,530
Thanks: 0
Thanked 503 Times in 494 Posts
felgall is a jewel in the roughfelgall is a jewel in the roughfelgall is a jewel in the rough
On any decent web browser the Javascript does not have access to update anything outside of the web page and can only open new browser windows when your visitor clicks on a link. If they have toolbars installed then they want them there and you have no right to try to interfere with them. If they didn't want them there then they would delete them.
__________________
Stephen
Learn Modern JavaScript - http://javascriptexample.net/
Helping others to solve their computer problem at http://www.felgall.com/
felgall is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:33 AM.


Advertisement
Log in to turn off these ads.