how do I hide the menubar/toolbar of the browser when a user opens my page, also, how do I disable the system menu (maximize/close)?
Printable View
how do I hide the menubar/toolbar of the browser when a user opens my page, also, how do I disable the system menu (maximize/close)?
In javascript I use window.open.
If you want to do it in VBScript you'll want to use the showModalDialog function:Code:
function openNewWindow()
{
newURL = "mypopuppage.htm"
window.open(newURL,"New Window","HEIGHT=400;WIDTH=400;scrollbars=no;resizable=no;toolbar=no;status=no")
}
Hope this helps, ChrisCode:Dim retVal
retVal = showModalDialog("calender.asp",dialarguments,"dialogwidth: 370px; dialogheight: 370px; center: yes; status: no; help: no")
yes I think this is one way to make it work, however i was looking for another solution since this one requires opening the page from another page with the arguments passed on...
i wonder whether there's an in-page script for this (the script that resides in the page itself)...
thanks lots for this and in advance for any new comments
ahhh, I see what you are saying. But how would that work? If you select a page to go to and then it changes your browser size, takes away your address bar, status bar, etc...How would you get all of that back without opening another instance of your browser? I don't think what you are wanting to do is possible, but if someone knows different, please show us. I will look myself. Chris