Link to home
Start Free TrialLog in
Avatar of Kmeli
Kmeli

asked on

javascript to remove/hide browser address bar or toolbar

Is it possible to remove/hide the browsers address bar or toolbar using Javascript for IE 7?
Im using the code below but I still see the address bar. Also, when the new page displays the exsisting ones data disappears and says [object], any ideas? Thanks.

"javascript: window.open("""+prodID+""",""Invoices"",""toolbar=no,scrollbars=no,location=no,resizable=no,width=625,height=550,left225,top=120"");"
Avatar of Gibu George
Gibu George
Flag of India image

IE 7 you cannot do it using javascript

Sorry the second on will not worjk for you
See this
We think the address bar is also important for users to see in pop-up windows. A missing address bar creates a chance for a fraudster to forge an address of their own. To help thwart that, IE7 will show the address bar on all internet windows to help users see where they are. IE7 will also help users avoid fraudulent sites if users choose to use the Phishing Filter to check a site for known phishing activity.
http://blogs.msdn.com/ie/archive/2005/11/21/495507.aspx
The first argument must be an Url, and on my computer the toolbar is hidden. May be it depends on a local setting.
Avoid the javascript: protocol, unuseful and unsafe.
<input type="button" onclick='window.open("test.html","Invoices","toolbar=no,scrollbars=no,location=no,resizable=no,width=625,height=550,left225,top=120");'>

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Gibu George
Gibu George
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Numerouno1
Numerouno1

my payment has been deducted from my credit card but,
this is not working at all
i am using window xp....