Results 1 to 4 of 4

Thread: hide browsers menubar/toolbar

  1. #1

    Thread Starter
    Addicted Member pardede's Avatar
    Join Date
    Jan 2000
    Posts
    232
    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)?

  2. #2
    Lively Member chrisgaddy's Avatar
    Join Date
    Mar 2001
    Location
    Olive Branch, MS
    Posts
    71
    In javascript I use window.open.

    Code:
      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:

    Code:
      Dim retVal
    
      retVal = showModalDialog("calender.asp",dialarguments,"dialogwidth: 370px; dialogheight: 370px; center: yes; status: no; help: no")
    Hope this helps, Chris

  3. #3

    Thread Starter
    Addicted Member pardede's Avatar
    Join Date
    Jan 2000
    Posts
    232
    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

  4. #4
    Lively Member chrisgaddy's Avatar
    Join Date
    Mar 2001
    Location
    Olive Branch, MS
    Posts
    71
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width