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,wid th=800,hei ght=500,re sizable=ye s,status=n o,top=50,l eft=100,sc rollbars=y es");" target="_new"> Spreadsheet Book</a>
Thanks in advance,
I am trying to hide the address toolbar but it seems the sintax is not ok:
<a href="window.open("myfile.
Thanks in advance,
add location=no
also use single quotes within your double quotes
ASKER
what's location=no for?
you should use target
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
try this
<a href="#" onclick='window.open(" myfile.xls", "Window",
"toolbar=no,menubar=no,wid th=800,hei ght=500,re sizable=ye s,status=n o,top=50,l eft=100,sc rollbars=y es");retur n false'>
<a href="#" onclick='window.open(" myfile.xls", "Window",
"toolbar=no,menubar=no,wid
location = no takes off the address bar
oop missed the link out
<a href="#" onclick='window.open(" myfile.xls", "Window",
"toolbar=no,menubar=no,wid th=800,hei ght=500,re sizable=ye s,status=n o,top=50,l eft=100,sc rollbars=y es");retur n false'>Spreadsheet Book</a>
<a href="#" onclick='window.open(" myfile.xls", "Window",
"toolbar=no,menubar=no,wid
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,
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.
ASKER
Yes I noticed it and I removed before.
Thanks.
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?
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.
ASKER
Sorry about that, I guess it was a timing issue.
onsubmit="window.open('abo