how to hide navigation bar in ie8 using javascript?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sidhx
    New Member
    • Dec 2009
    • 50

    how to hide navigation bar in ie8 using javascript?

    When i click on a link popup page opens without any address bar,menu (navigation bar).The code is able to hide the navigation bar in ie6 and ie 7 but not able do it in ie 8.
  • sidhx
    New Member
    • Dec 2009
    • 50

    #2
    its not working in ie 6 and ie7 to.while it is in Internet it does not hide the navigation bar but its hides in Local Intranet setting.I need to hide the navigation in Internet setting

    Comment

    • acoder
      Recognized Expert MVP
      • Nov 2006
      • 16032

      #3
      Post your popup code. It may be that the browser doesn't allow the navigation bar to be hidden. If so, there's not much you can really do about it.

      Comment

      • sidhx
        New Member
        • Dec 2009
        • 50

        #4
        this the index file containing the code

        Code:
        window.open("stage.html","mywindow","location=no,titlebar=no,status=no,scrollbars=no,menubar=no,toolbar=no,directories=no,resizable=no,copyhistory=no,width=1013,height=745 ");
        Stage.html
        Containing details as follows

        Code:
        <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
        <head>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
        <title>Stage</title>
        </head>
        <body bgcolor="#ffffff" topmargin="0" leftmargin="0">
        <center>
        <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="1013" height="715" id="Stage" align="top">
        <param name="allowScriptAccess" value="sameDomain" />
        <param name="movie" value="Stage.swf" /><param name="loop" value="false" /><param name="menu" value="false" /><param name="quality" value="best" /><param name="scale" value="noscale" /><param name="bgcolor" value="#ffffff" /><embed src="Stage.swf" loop="false" menu="false" quality="best" scale="noscale" bgcolor="#ffffff" width="1013" height="715" name="Stage" align="top" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
        </object>
        </body>
        </html>
        Last edited by Dormilich; May 12 '10, 11:37 AM. Reason: Please use [code] tags when posting code

        Comment

        • acoder
          Recognized Expert MVP
          • Nov 2006
          • 16032

          #5
          The code seems OK enough. If the browser settings don't allow certain things to be hidden, you can't really control that. See window.open(). If this for an intranet, then you may be able to tweak the settings of each browser.

          Comment

          • sidhx
            New Member
            • Dec 2009
            • 50

            #6
            Originally posted by acoder
            The code seems OK enough. If the browser settings don't allow certain things to be hidden, you can't really control that. See window.open(). If this for an intranet, then you may be able to tweak the settings of each browser.
            not for intranet but for internet

            Comment

            • sidhx
              New Member
              • Dec 2009
              • 50

              #7
              Originally posted by sidhx
              not for intranet but for internet
              Is there any, way to do it

              Comment

              • gits
                Recognized Expert Moderator Expert
                • May 2007
                • 5390

                #8
                as acoder already mentioned ... when the browser settings don't allow to hide something then you cannot do it (this might go for all modern browsers to avoid url-spoofing etc.) ... the only way would be to not use window.open() to open a popup and use an inline element instead ... you might use a div with an iframe to 'simulate' an 'in-page' window if you don't want to use an inplace iframe ...

                Comment

                • acoder
                  Recognized Expert MVP
                  • Nov 2006
                  • 16032

                  #9
                  That's correct. using DHTML gives you a lot more control and no need to worry about popup blockers. Not only that, but there's a large number of ready-made solutions out there. Search for "lightbox alternative" or similar. One other bonus: they look a lot nicer than popup windows.

                  Comment

                  • sidhx
                    New Member
                    • Dec 2009
                    • 50

                    #10
                    Originally posted by gits
                    as acoder already mentioned ... when the browser settings don't allow to hide something then you cannot do it (this might go for all modern browsers to avoid url-spoofing etc.) ... the only way would be to not use window.open() to open a popup and use an inline element instead ... you might use a div with an iframe to 'simulate' an 'in-page' window if you don't want to use an inplace iframe ...
                    I need it in a full screen

                    Comment

                    • sidhx
                      New Member
                      • Dec 2009
                      • 50

                      #11
                      I need the swf file fit in the resolution of width=1013 and height=715 , lightbox appears full screen inside the bowers but i needed it appear full screen of the monitor.Is there any other way around.

                      Comment

                      • gits
                        Recognized Expert Moderator Expert
                        • May 2007
                        • 5390

                        #12
                        you might resize the browser window ... which would be certainly one of the most annoying things a page could do ... so i think ... there is nothing you could do except accepting the toolbars etc. in a popup-window.

                        kind regards

                        Comment

                        • sidhx
                          New Member
                          • Dec 2009
                          • 50

                          #13
                          Originally posted by gits
                          you might resize the browser window ... which would be certainly one of the most annoying things a page could do ... so i think ... there is nothing you could do except accepting the toolbars etc. in a popup-window.

                          kind regards
                          hey Gits Is there any other idea to solve my problem.The swf file contains the seek bar which will be hidden if the navigation bar shows.Anyway which i could solve the problem.Plz help

                          Comment

                          • sidhx
                            New Member
                            • Dec 2009
                            • 50

                            #14
                            Thanks for all your replay

                            Comment

                            • sidhx
                              New Member
                              • Dec 2009
                              • 50

                              #15
                              Originally posted by gits
                              you might resize the browser window ... which would be certainly one of the most annoying things a page could do ... so i think ... there is nothing you could do except accepting the toolbars etc. in a popup-window.

                              kind regards
                              Thanks gits for your support

                              Comment

                              Working...