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,
MylorAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

archrajanCommented:
look at this example

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

0
archrajanCommented:
add location=no
0
archrajanCommented:
also use single quotes within your double quotes
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

MylorAuthor Commented:
what's location=no for?
0
archrajanCommented:
you should use target
0
dakydCommented:
If I'm not mistaken, the window.open has to go in an onclick handler, otherwise your link will try to go to some page called window.open('myfile.xls' ...  Is this what you want?  Hope that helps.

<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');" target="_new"> Spreadsheet Book</a>
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
GwynforWebCommented:
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'>

0
archrajanCommented:
location = no takes off the address bar
0
GwynforWebCommented:
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>

0
MylorAuthor Commented:
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,
0
dakydCommented:
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.
0
MylorAuthor Commented:
Yes I noticed it and I removed before.
Thanks.
0
GwynforWebCommented:
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
0
GwynforWebCommented:
>>"Yes I noticed it and I removed before."<<

 So you did not try mine?
0
GwynforWebCommented:
with out the return false that I included the calling page gets set with the server can not be found page.
0
MylorAuthor Commented:
Sorry about that, I guess it was a timing issue.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
JavaScript

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.