martinkonrad
asked on
script to hide scrollbar, menubar, no resize on current window
i need a script hiding scrollbars and disallowing resize
menubar optional(have to deside later)
automatic (without link)
ideally working for ie and netscape mac supported
its late and i give up after having found hundreds of nearly right scripts (the pop up ones)
have no idea about javasript so cant translate these to what i want
help is much appriceated
menubar optional(have to deside later)
automatic (without link)
ideally working for ie and netscape mac supported
its late and i give up after having found hundreds of nearly right scripts (the pop up ones)
have no idea about javasript so cant translate these to what i want
help is much appriceated
ASKER
i want to hide the scroll bars and the rest on opening of my website as i do not want the design to be distracted by it. scrollbars and menubar reduce effectife screen size and would hide part of design.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
THanks for the points! I would of added the netscape check, but I didn't know this was the way you wanted to go.
I usually write this in a function that checks for the browser like so:
function openWindow (my_url, title){
if (navigator.appName.toLower Case() == "navigator"){
window.open (my_url, title, 'WIDTH=800,HEIGHT=600,scre enY='+(scr een.width/ 2 - 800/2)+',screenX='+(screen .height/2 - 600/2)+',scrollbars=0');
} else {
window.open (my_url, title, 'WIDTH=800,HEIGHT=600,left ='+(screen .width/2 - 800/2)+',top='+(screen.hei ght/2 -600/2)+',scrollbars=0');
}
}
then call it like so:
openWindow("http://myURl","myTitle");
This way you can reuse the code.
M=
I usually write this in a function that checks for the browser like so:
function openWindow (my_url, title){
if (navigator.appName.toLower
window.open (my_url, title, 'WIDTH=800,HEIGHT=600,scre
} else {
window.open (my_url, title, 'WIDTH=800,HEIGHT=600,left
}
}
then call it like so:
openWindow("http://myURl","myTitle");
This way you can reuse the code.
M=
For the users window opening your link you should not be fooling around with their browser window and this site (in my opinion) should not be giving advice on how to do it.