Click to See Complete Forum and Search --> : hide browsers menubar/toolbar
pardede
Apr 3rd, 2001, 09:33 AM
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)?
chrisgaddy
Apr 3rd, 2001, 09:02 PM
In javascript I use window.open.
function openNewWindow()
{
newURL = "mypopuppage.htm"
window.open(newURL,"New Window","HEIGHT=400;WIDTH=400;scrollbars=no;resizable=no;toolbar=no;status=no")
}
If you want to do it in VBScript you'll want to use the showModalDialog function:
Dim retVal
retVal = showModalDialog("calender.asp",dialarguments,"dialogwidth: 370px; dialogheight: 370px; center: yes; status: no; help: no")
Hope this helps, Chris
pardede
Apr 4th, 2001, 07:13 AM
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
chrisgaddy
Apr 4th, 2001, 08:04 AM
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
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.