Link to home
Start Free TrialLog in
Avatar of Mylor
Mylor

asked on

How to disable address toolbar ?

Hi,
I am trying to hide the address toolbar but it seems the sintax is not ok:

<a href="window.open("myfile.xls", "Window", "toolbar=no,menubar=no,width=800,height=500,resizable=yes,status=no,top=50,left=100,scrollbars=yes");" target="_new"> Spreadsheet Book</a>

Thanks in advance,
Avatar of archrajan
archrajan

look at this example

 onsubmit="window.open('about:blank','judges','width=750,height=700,menubar=no,toobar=no,scrollbars=yes,resizable=yes')">

add location=no
also use single quotes within your double quotes
Avatar of Mylor

ASKER

what's location=no for?
you should use target
ASKER CERTIFIED SOLUTION
Avatar of dakyd
dakyd

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
try this

<a href="#" onclick='window.open(" myfile.xls", "Window",
"toolbar=no,menubar=no,width=800,height=500,resizable=yes,status=no,top=50,left=100,scrollbars=yes");return false'>

location = no takes off the address bar
oop missed the link out

<a href="#" onclick='window.open(" myfile.xls", "Window",
"toolbar=no,menubar=no,width=800,height=500,resizable=yes,status=no,top=50,left=100,scrollbars=yes");return false'>Spreadsheet Book</a>

Avatar of Mylor

ASKER

Thank you guys,

dakyd, your solution worked fine for me, but still it appears all the address location at the very top, in the title, how can I change that?

Thanks,
I'm not 100% sure, but I don't think you can do much better than that.  And actually, GfW's solution is better than mine in this case, I accidentally left in the target="_new".  That's going to cause you to open more than one new window, which probably isn't what you're looking for.
Avatar of Mylor

ASKER

Yes I noticed it and I removed before.
Thanks.
I am at a loss as to why  the accepted solution was selected. It open 2 windows one of which shows the address bar. To hide the address from the title bar,  in the page myfile.xls put  <title>My Excellent PAge</tile> to set the title
>>"Yes I noticed it and I removed before."<<

 So you did not try mine?
with out the return false that I included the calling page gets set with the server can not be found page.
Avatar of Mylor

ASKER

Sorry about that, I guess it was a timing issue.