This code fails on IE but works with Netscape / Mozilla

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

    This code fails on IE but works with Netscape / Mozilla

    <script language="Javas cript1.1" type="text/javascript">
    function xso_popup(url,n ame,options)
    {
    var cw=window.open( url,name,option s);
    cw.opener=this;
    cw.focus();
    }

    Link :

    <a href="javascrip t:xso_popup('ht tp://www.somewebsite .com/images/image 239.jpg','Enlar ged View','width=30 0,height=300,sc rollbars,resiza ble')">


    What could be wrong ?? I just get a "Error on page" error with some gripe
    about arguments.

    Left to myself, I would not even bother about IE, but its the most popular
    browser out there, and I need to get this to work with IE as well.
  • Phil Roberts

    #2
    Re: This code fails on IE but works with Netscape / Mozilla

    With total disregard for any kind of safety measures "Madhusudan
    Singh" <spammers-go-here@yahoo.com> leapt forth and uttered:
    [color=blue]
    > <script language="Javas cript1.1" type="text/javascript">
    > function xso_popup(url,n ame,options)
    > {
    > var cw=window.open( url,name,option s);
    > cw.opener=this;
    > cw.focus();
    > }
    >
    > Link :
    >
    > <a
    > href="javascrip t:xso_popup('ht tp://www.somewebsite .com/images/ima
    > ge 239.jpg','Enlar ged
    > View','width=30 0,height=300,sc rollbars,resiza ble')">
    >
    >
    > What could be wrong ?? I just get a "Error on page" error with
    > some gripe about arguments.
    >
    > Left to myself, I would not even bother about IE, but its the
    > most popular browser out there, and I need to get this to work
    > with IE as well.
    >[/color]

    You'll probably get better results in a Javascript group....

    --
    There is no signature.....

    Comment

    Working...