Opening new window in Mozilla

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Rob

    Opening new window in Mozilla

    Why does the following code NOT work in Mozilla, but it DOES in IE
    (for Mac) and Safari?

    <a href="somepage. html" onClick="window .open('somepage .html',
    'SomeWindowTitl e', 'width=790,heig ht=560, scrollbar=auto,
    menubar=no');"> Enter</a>

    Please help...thanks
  • Janwillem Borleffs

    #2
    Re: Opening new window in Mozilla


    "Rob" <robert_smith02 68@yahoo.com> schreef in bericht
    news:3b34d25d.0 309091406.54102 afa@posting.goo gle.com...[color=blue]
    > Why does the following code NOT work in Mozilla, but it DOES in IE
    > (for Mac) and Safari?
    >
    > <a href="somepage. html" onClick="window .open('somepage .html',
    > 'SomeWindowTitl e', 'width=790,heig ht=560, scrollbar=auto,
    > menubar=no');"> Enter</a>
    >
    > Please help...thanks[/color]

    Works in my copy (Mozilla v1.4), but is the following not what you really
    want?

    <a href="somepage. html" target="SomeWin dowTitle"
    onClick="window .open('','SomeW indowTitle',
    'width=790,heig ht=560,scrollba r=auto,menubar= no');">Enter</a>

    P.S.: Watch for spaces in the window properties, they shouldn't be present.


    JW



    Comment

    • DU

      #3
      Re: Opening new window in Mozilla

      Rob wrote:
      [color=blue]
      > Why does the following code NOT work in Mozilla, but it DOES in IE
      > (for Mac) and Safari?
      >
      > <a href="somepage. html" onClick="window .open('somepage .html',
      > 'SomeWindowTitl e', 'width=790,heig ht=560, scrollbar=auto,
      > menubar=no');"> Enter</a>
      >
      > Please help...thanks[/color]

      As coded, your link will not open a requested popup if javascript is
      disabled. As coded, your link will create a popup and then load the
      referenced resource in the opener too. As coded, the popup will exceed
      the available space for application in MSIE, Mozilla and Opera browsers
      so error compensation/correcting functions will need to spend time, cpu
      to render the window within the os-workarea for applications.

      <a href="somepage. html" target="SomeWin dowTitle"
      onclick="window .open(this.href , this.target,
      'width=600,heig ht=500,scrollba rs=yes,resizabl e=yes,status=ye s'); return
      false;">Enter</a>

      will open a popup window in all browsers under normal conditions. Note
      that scrollbar=auto will not be honored in MSIE 5+, Mozilla, NS 6+ and
      Opera 7. It must be scrollbars=yes. And you must make sure there is no
      blank space in the 3rd argument string list.

      DU
      --
      Javascript and Browser bugs:

      - Resources, help and tips for Netscape 7.x users and Composer
      - Interactive demos on Popup windows, music (audio/midi) in Netscape 7.x


      Comment

      Working...