Submit Your Article Forum Rules

Results 1 to 3 of 3

Thread: Closing Explorer Menu in IE9 Popup

  1. #1
    Senior Member
    Join Date
    Jan 2008
    Posts
    304

    Closing Explorer Menu in IE9 Popup

    I am looking for a script that will close the left column Explorer style menu in IE9 when opening a popup link. Currently the Explorer menu carries over to the popup.

    Any suggestions?
    I use Hidden Content as added security for my networks and servers.

  2. #2
    Senior Member
    Join Date
    Dec 2007
    Posts
    479
    Not sure completely, but maybe Active X might the technology you are looking for? I think I could be wrong on that though. It might be a security issue of sorts to allow a webpage to interact with the appearance of the web browser itself without asking the user to download a plug-in or install an application.

  3. #3
    WebProWorld MVP mikmik's Avatar
    Join Date
    Aug 2003
    Posts
    1,525
    This might work, not sure(It is oldish): https://developer.mozilla.org/en/DOM/window.open

    Code:
    1
    var windowObjectReference;
    2
    var strWindowFeatures = "menubar=yes,location=yes,resizable=yes,scrollbars=yes,status=yes";
    view sourceprint?
    1
    function openRequestedPopup()
    2
    {
    3
      windowObjectReference = window.open("http://www.cnn.com/",
    4
    "CNN_WindowName", strWindowFeatures);
    5
    }
    1
    var windowObjectReference;
    2
     
    3
    function openRequestedPopup()
    4
    {
    5
      windowObjectReference = window.open("http://www.domainname.ext/path/ImageFile.png",
    6
                      "DescriptiveWindowName",
    7
                      "resizable=yes,scrollbars=yes,status=yes");
    8
    }
    If you define the strWindowFeatures parameter, then the features that are not listed, requested in the string will be disabled or removed (except titlebar and close which are by default yes).
    - - - -
    This is specific to IE9:
    Code:
    function popUp(url) {
      day = new Date();
      id = day.getTime();
      eval("page" + id + " = window.open(url,'" + id + "','_blank','toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=600,height=520,left = 400,top = 200');");
      return false;
    }
    Maybe include "explorerbar=0"?
    Got that here: http://stackoverflow.com/questions/6...net-explorer-9
    Last edited by mikmik; 07-18-2011 at 01:48 AM. Reason: forgot to include link
    Babies don't need a vacation, but I still see them at the beach... it pisses me off! I'll go over to a little baby and say 'What are you doing here? You haven't worked a day in your life!'
    Steven Wright

Tags for this Thread

Posting Permissions

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