Results 1 to 15 of 15

Thread: how to hide menubar and status bar

  1. #1

    Thread Starter
    Fanatic Member pradeepkrao's Avatar
    Join Date
    Sep 2001
    Location
    New Jersey
    Posts
    534

    how to hide menubar and status bar

    Hi,

    How can i hide a menubar and tool bar of IE.

    I have a main asp. when i enter the URL i want the current browser to have its address bar ,tool bar and menu bar hidden.

    Please let me know if it is possible..
    I am using window.open.. but the user has to click the href.. i want this to happen on load..

    Thanks in advance,
    Pradeep
    Learn by others experience as you cannot live long to experience them all.
    www.freewebs.com/pradeepkrao

    LOOK AT MY GAMES AT MY WEB SITE.

  2. #2
    Fanatic Member punkpie_uk's Avatar
    Join Date
    Sep 2001
    Location
    UK
    Posts
    645
    First, try this code

    Code:
    function openwindow(){
    window.open("page2.htm","newwin","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=yes,width=400,height=400")
    }
    ...and then put openwindow() in the body onload event...

    Code:
    <body onload="openwindow()">
    SPREAD THE WORD!!! Are You Lee McCormick? Because I Am



    Lee M McCormick
    [email protected]

    Lee McCormick.com - Live
    Dynamically Webbed.com - In development but live

  3. #3

    Thread Starter
    Fanatic Member pradeepkrao's Avatar
    Join Date
    Sep 2001
    Location
    New Jersey
    Posts
    534

    Hmmmmm

    No Good... could you suggest me.. i dont wan pop up windows.. i want the parent to change its property onload
    Learn by others experience as you cannot live long to experience them all.
    www.freewebs.com/pradeepkrao

    LOOK AT MY GAMES AT MY WEB SITE.

  4. #4
    Fanatic Member punkpie_uk's Avatar
    Join Date
    Sep 2001
    Location
    UK
    Posts
    645
    Not possible I'm afraid, only works on windows created by a scripting language, not the parent.
    SPREAD THE WORD!!! Are You Lee McCormick? Because I Am



    Lee M McCormick
    [email protected]

    Lee McCormick.com - Live
    Dynamically Webbed.com - In development but live

  5. #5

    Thread Starter
    Fanatic Member pradeepkrao's Avatar
    Join Date
    Sep 2001
    Location
    New Jersey
    Posts
    534

    Thanks

    Ok.. i will do the first one...

    Thank you,
    Pradeep
    Learn by others experience as you cannot live long to experience them all.
    www.freewebs.com/pradeepkrao

    LOOK AT MY GAMES AT MY WEB SITE.

  6. #6
    New Member
    Join Date
    Jun 2002
    Location
    Shepton Mallet, UK
    Posts
    8
    why not get the first page to open the window, in the exact format you want, then use this command in the formatted window:

    window.parent.close()

    This way, you'll have your formatted window, and the previous window will go immediately.

  7. #7

    Thread Starter
    Fanatic Member pradeepkrao's Avatar
    Join Date
    Sep 2001
    Location
    New Jersey
    Posts
    534

    Hi

    I had done that window.close()
    But when i use it it ask's Do you want to close this window..??

    How can i prevent this message box..??

    Thanks in Advance,
    Pradeep
    Learn by others experience as you cannot live long to experience them all.
    www.freewebs.com/pradeepkrao

    LOOK AT MY GAMES AT MY WEB SITE.

  8. #8
    Fanatic Member punkpie_uk's Avatar
    Join Date
    Sep 2001
    Location
    UK
    Posts
    645
    Unfortunatly you cant do that either. You can only close a window that you had opened yourself using a scripting language.
    SPREAD THE WORD!!! Are You Lee McCormick? Because I Am



    Lee M McCormick
    [email protected]

    Lee McCormick.com - Live
    Dynamically Webbed.com - In development but live

  9. #9
    New Member
    Join Date
    Jun 2002
    Location
    Shepton Mallet, UK
    Posts
    8

    formatted IE Window

    try this with two files:

    file1 (I called test1.htm)
    <HTML>
    <HEAD>
    </HEAD>
    <BODY>
    </BODY>
    </HTML>
    <SCRIPT LANGUAGE=javascript>
    <!--
    function window.onload(){
    //formatted window
    window.open("test2.htm",null, "width=500;height=500");
    }
    //-->
    </SCRIPT>

    File2 (I called "test2.htm")
    <HTML>
    <HEAD>
    </HEAD>
    <BODY>
    popup.

    </BODY>
    </HTML>
    <SCRIPT LANGUAGE=javascript>
    <!--
    function window.onload(){
    window.opener.close()
    }
    //-->
    </SCRIPT>

    By navigating to test1, a formatted window will miraculously appear on it's own, without any messagesboxes asking you if your sure you want to close any windows.

    Remember kids, Code Good, Code RIGHT !

  10. #10

    Thread Starter
    Fanatic Member pradeepkrao's Avatar
    Join Date
    Sep 2001
    Location
    New Jersey
    Posts
    534

    Hi

    It is still poping up a message box..
    Learn by others experience as you cannot live long to experience them all.
    www.freewebs.com/pradeepkrao

    LOOK AT MY GAMES AT MY WEB SITE.

  11. #11
    New Member
    Join Date
    Jun 2002
    Location
    Shepton Mallet, UK
    Posts
    8
    What browser are you using? I'm confident that it should work with IE5+...
    remember kids, code good, code RIGHT!

  12. #12

    Thread Starter
    Fanatic Member pradeepkrao's Avatar
    Join Date
    Sep 2001
    Location
    New Jersey
    Posts
    534

    Yeup

    u r right.. i am on i.e 6.0 and S.P 6.0
    Learn by others experience as you cannot live long to experience them all.
    www.freewebs.com/pradeepkrao

    LOOK AT MY GAMES AT MY WEB SITE.

  13. #13
    New Member
    Join Date
    Jun 2002
    Location
    Shepton Mallet, UK
    Posts
    8
    well, i'm using IE6 and I don't get that message, so I don't think I can help you...

    Sorry...

    remember kids, code good, code RIGHT!

  14. #14

    Thread Starter
    Fanatic Member pradeepkrao's Avatar
    Join Date
    Sep 2001
    Location
    New Jersey
    Posts
    534

    Hi

    I think .. i can prevent that message box from IE settings.. i mean IE properties..

    well i'll try it and let you know if it helps...

    Hae thanks,
    Pradeep
    Learn by others experience as you cannot live long to experience them all.
    www.freewebs.com/pradeepkrao

    LOOK AT MY GAMES AT MY WEB SITE.

  15. #15

    Thread Starter
    Fanatic Member pradeepkrao's Avatar
    Join Date
    Sep 2001
    Location
    New Jersey
    Posts
    534

    Hi

    This is what i get
    Attached Images Attached Images  
    Learn by others experience as you cannot live long to experience them all.
    www.freewebs.com/pradeepkrao

    LOOK AT MY GAMES AT MY WEB SITE.

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