| Author |
How to hide addressbar and toolbar of IE using Javascript?
|
Rose Francis
Greenhorn
Joined: Feb 05, 2006
Posts: 4
|
|
|
Could anyone tell how to hide the addressbar and toolbar of the current browser window(IE) using javascript. I am able to do it for new window using window.open().
|
Rose
|
 |
jeff rusty
Ranch Hand
Joined: Nov 07, 2006
Posts: 109
|
|
the below Link can give you a clear idea of the attributes and values of Window.open(); http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/methods/open_0.asp To Hide the AddressBar : window.open("Sample.htm",null, "height=200,width=400,status=yes,toolbar=no,menubar=no,location=no");
|
 |
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 15357
|
|
premnath, Rose said "Current window" and they could do it with the "window.open()"! Rose, You can not remove toolbars from the current window. Only way is through a pop up window. Eric
|
 |
Rose Francis
Greenhorn
Joined: Feb 05, 2006
Posts: 4
|
|
Thank you verymuch Premnath and Eric. As Eric said I was able to do it using window.open already. But the popup blocker was the one which I prefered to get rid off and also it was better if I could do it with the current window. When I try to close the parent window after opening the popup, both windows are getting closed sometimes. And also I am not able to maximise the new window. The code I tried is, window.opener=self; window.open('b.html','null','width=1000,height=750,top=0,left=0,toolbar=no,scrollbars=yes,location=no,resizable=yes'); window.resizeTo(screen.width,screen.height); self.close(); Could anyone suggest a solution?
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56157
|
|
Originally posted by Rose Francis: When I try to close the parent window after opening the popup
How unfriendly.
Could anyone suggest a solution?
What is it you are really trying to accomplish? Aside from annoying your users. [ November 15, 2006: Message edited by: Bear Bibeault ]
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
Rose Francis
Greenhorn
Joined: Feb 05, 2006
Posts: 4
|
|
Hi all my friends, I am extremely sorry for that. Bear Bibeault, Thank you very much for pointing it out.
|
 |
Ben Souther
Sheriff
Joined: Dec 11, 2004
Posts: 13410
|
|
Rose and prem, Welcome to JavaRanch! We're pleased to have you here with us in the HTML/Javascript forum, but there are a few rules that need to be followed, and one is that proper names are required. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it. In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious. You can change it here
|
Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
|
 |
Rose Francis
Greenhorn
Joined: Feb 05, 2006
Posts: 4
|
|
|
I have corrected the display name.
|
 |
 |
|
|
subject: How to hide addressbar and toolbar of IE using Javascript?
|
|
|