Re: window.open and IE6

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Roger Withnell (rogerREMOVE_at_THISFIRSTupperbridge.co.uk)
Date: 08/05/04

  • Next message: Randy Webb: "Re: window.open and IE6"
    Date: Thu, 5 Aug 2004 15:08:29 +0000 (UTC)
    
    

    The function I'm using is simply:

    function HelpPage(src, width, height)
    {
     var PortraitWindow = window.open(src, "HelpPage", "width=" + width +
    ",height=" + height + ",left=200,top=100, title=no,
    resizable=no,toolbar=no,scrollbars=yes,menubar=no");
     PortraitWindow.focus();
     return false;
    }

    And I tried call it using onload="return HelpPage('HelpPage.htm', '400',
    '500') in the body tag and by calling it between the body tags. Both work
    on IE5.5 and not on both IE6's.

    If, having loaded the page, I call the function with onclick in say an input
    submit type, it works in IE6.

    Can't find any pop-up blockers. Not sure what you're looking for when you
    ask what's different about IE6 other than the version of IE.

    One difference is that Norton Anti-Virus is installed on both the IE6
    machines, but not on the IE5. But how is it the onclick works and the
    onload doesn't?

    "Randy Webb" <HikksNotAtHome@aol.com> wrote in message
    news:U7ydna6uzdUyEYzcRVn-uA@comcast.com...
    > Roger Withnell wrote:
    > > I am using onload in the body tag to call a function that opens an
    > > additional window using window.open.
    >
    > That may, or may not, work. Depending on other things.
    >
    > > The window opens using IE5.5 but not under IE6 (on ME or XP).
    >
    > Whats different about the IE6 from IE5.5 other than the version of IE?
    > And, do the other computers have popup blockers on them? If all else
    > fails, post some code.


  • Next message: Randy Webb: "Re: window.open and IE6"

    Relevant Pages

    • Re: IE5 only shows tooo wide div
      ... div with id="middle" (red color border). ... never happens in IE6+, FF. ... You put up a transitional doctype doc, ... leftmargin in BODY tag or omitted ...
      (alt.html)
    • Re: Functions assigned to variables test
      ... tag is parsed so window.onload is null when WindowOnload is called. ... It seems that this fuctions should check to see if there is an onload ... and then will run the printOnLoad function. ... the opening body tag is parsed and window.onload is assigned an ...
      (comp.lang.javascript)
    • Re: IE5 only shows tooo wide div
      ... div with id="middle" (red color border). ... never happens in IE6+, FF. ... leftmargin in BODY tag or omitted ...
      (alt.html)
    • Re: window.open and IE6
      ... > I am using onload in the body tag to call a function that opens an ... > additional window using window.open. ...
      (microsoft.public.scripting.jscript)
    • add onload to using C#?
      ... Give the tag an id, and make it run as a htmlcontrol ... function you need to the "onload" event. ... The interval is set in the body tag html for my other sites, ... to register the initial call that sets the interval, but so far, it isn't ...
      (microsoft.public.dotnet.framework.aspnet)