Link to home
Start Free TrialLog in
Avatar of jkunrein
jkunrein

asked on

Hide Address Bar in Target Window

I am attempting to create a link that will open a new window with a given size (say, 1010x600) and with no address bar. I found this code elsewhere in these forums:

<A href="new_page.asp"
target="_new"
onClick="window.open(this.href,this.target,'status');
return false">New Page</a>

...and it does a great job, except that I ONLY want to restrict the address bar (not the menu bar or toolbar or status bar) and I want to designate the window dimensions. Will someone help me edit the code or tell me it's impossible? ;)

Thank you very much.
SOLUTION
Avatar of Onthrax
Onthrax
Flag of Netherlands 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
ASKER CERTIFIED SOLUTION
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
SOLUTION
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
That's it.  Except newer browsers are actually preventing the removal of the address bar these days (or at least still having the address somewhere visible in the window).

--
Lee
Avatar of jkunrein
jkunrein

ASKER

jonathanmelnick's code worked, except that it shut down all toolbars/scrollbars/status bar and I haven't yet found a way to do those things individually. Still experimenting with information provided by Onthrax and hernst42; thanks for the resources!

LeeKowalkowski -- Good point. My company is still on IE6 (sorry, I forgot to mention that) but I would rather create something as future-proof as possible.

Thanks, all!