window.open problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Grouchy.Oldgit@googlemail.com

    window.open problem

    Have been successfully using the following to open a pop-up for some
    time

    function msg(url) {

    window.open(url ,'msg','scrollb ars=yes,menubar =yes,width=750, height=400,resi zable=yes,toolb ar=yes,location =yes,status=yes ')
    }

    Works fine on IE6 & Firefox, but IE7 opens a new tab obscuring the
    calling page. How can IE7 be made to open a new window?
  • PA Bear [MS MVP]

    #2
    Re: window.open problem

    IE Tools | Internet Options | General | Tabs | Settings | When a pop-up is
    encountered...

    Lots more in IE Help! <wink>
    --
    ~Robear Dyer (PA Bear)
    MS MVP-IE, Mail, Security, Windows Desktop Experience - since 2002
    AumHa VSOP & Admin http://aumha.net
    DTS-L http://dts-l.net/


    Grouchy.Oldgit@ googlemail.com wrote:
    Have been successfully using the following to open a pop-up for some
    time
    >
    function msg(url) {
    >
    window.open(url ,'msg','scrollb ars=yes,menubar =yes,width=750, height=400,resi zable=yes,toolb ar=yes,location =yes,status=yes ')
    }
    >
    Works fine on IE6 & Firefox, but IE7 opens a new tab obscuring the
    calling page. How can IE7 be made to open a new window?

    Comment

    • Jeremy J Starcher

      #3
      Re: window.open problem

      On Wed, 25 Jun 2008 10:45:48 -0700, Grouchy.Oldgit wrote:
      window.open
      (url,'msg','scr ollbars=yes,men ubar=yes,width= 750,height=400, resizable=yes,t oolbar=yes,loca tion=yes,status =yes')
      }
      window.open is NOT required to open a new window. In most modern user
      agents, the end use may choose to open window a new window, open a new
      tab or ignore the request entirely.

      Comment

      • Grouchy.Oldgit@googlemail.com

        #4
        Re: window.open problem

        Many thanks for prompt reply.

        Unfortunately it seems that IE7 by default opens the link in a tab
        rather than a pop-up! As most users probably never get past the
        defaults, is there any way in javascript to force a link to open in a
        pop-up?

        On Jun 25, 10:52 am, "PA Bear [MS MVP]" <PABear...@gmai l.comwrote:
        IE Tools | Internet Options | General | Tabs | Settings | When a pop-up is
        encountered...
        >
        Lots more in IE Help! <wink>
        --
        ~Robear Dyer (PA Bear)
        MS MVP-IE, Mail, Security, Windows Desktop Experience - since 2002
        AumHa VSOP & Adminhttp://aumha.net
        DTS-Lhttp://dts-l.net/
        >
        >
        >
        Grouchy.Old...@ googlemail.com wrote:
        Have been successfully using the following to open a pop-up for some
        time
        >
        function msg(url) {
        >
        window.open(url ,'msg','scrollb ars=yes,menubar =yes,width=750, height=400,resi ­zable=yes,tool bar=yes,locatio n=yes,status=ye s')
        }
        >
        Works fine on IE6 & Firefox, but IE7 opens a new tab obscuring the
        calling page. How can IE7 be made to open a new window?- Hide quoted text -
        >
        - Show quoted text -

        Comment

        • rob^_^

          #5
          Re: window.open problem

          Hi,

          var
          nwin=window.ope n(url,'msg','sc rollbars=yes,me nubar=no,width= 750,height=400, resi­zable=yes, toolbar=no,loca tion=yes,status =yes');
          nwin.focus();
          void(0);

          Regards.

          <Grouchy.Oldgit @googlemail.com wrote in message
          news:342e2eeb-962d-486d-b707-15114f9a5c27@j1 g2000prb.google groups.com...
          Many thanks for prompt reply.
          >
          Unfortunately it seems that IE7 by default opens the link in a tab
          rather than a pop-up! As most users probably never get past the
          defaults, is there any way in javascript to force a link to open in a
          pop-up?
          >
          On Jun 25, 10:52 am, "PA Bear [MS MVP]" <PABear...@gmai l.comwrote:
          >IE Tools | Internet Options | General | Tabs | Settings | When a pop-up
          >is
          >encountered. ..
          >>
          >Lots more in IE Help! <wink>
          >--
          >~Robear Dyer (PA Bear)
          >MS MVP-IE, Mail, Security, Windows Desktop Experience - since 2002
          >AumHa VSOP & Adminhttp://aumha.net
          >DTS-Lhttp://dts-l.net/
          >>
          >>
          >>
          >Grouchy.Old... @googlemail.com wrote:
          Have been successfully using the following to open a pop-up for some
          time
          >>
          function msg(url) {
          >>
          window.open(url ,'msg','scrollb ars=yes,menubar =yes,width=750, height=400,resi ­zable=yes,tool bar=yes,locatio n=yes,status=ye s')
          }
          >>
          Works fine on IE6 & Firefox, but IE7 opens a new tab obscuring the
          calling page. How can IE7 be made to open a new window?- Hide quoted
          text -
          >>
          >- Show quoted text -
          >

          Comment

          • Richard Cornford

            #6
            Re: window.open problem

            "rob^_^" <iecustomizer@h otmail.comwrote :
            <snip>
            var nwin=window.ope n(url,'msg','sc rollbars=yes,me nubar=no,width= 750,
            height=400,resi ­zable=yes,tool bar=no,location =yes,status=yes ');
            nwin.focus();
            void(0);
            <snip>

            So which part of that overrides the user's settings and forces IE 7 to
            open a new window instead of opening a new tab to show the url?

            And what is the - void(0); - statement supposed to do? Pure mystical
            incantation or is there some reason for its being there?
            <Grouchy.Oldgit @googlemail.com wrote:
            <snip>
            >... , is there any way in javascript to force a link to open in a
            >pop-up?
            It is often said that people who top-post don't bother reading what they
            are replying to.

            Richard.

            Comment

            Working...