#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2003
    Location
    RI
    Posts
    22
    Rep Power
    0

    JavaScript works in Netscape but not in Explorer


    Does anyone know why this code works in Netscape but not in Explorer?

    <a href="JavaScript:"onClick="window.open('research.php?a=1&b','Research Page Window','width=560,height=600')"><img src="images/rsrch_btn.gif" width="68" align="top" border="0" type="image" ISMAP name="research_pers" naturalsizeflag="0"></a>

    The image button is displayed but is not functional.

    Any help is greatly appreciated.
    Last edited by damienleonardo; April 21st, 2003 at 07:01 AM.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Nov 2001
    Posts
    1,882
    Rep Power
    19
    Code:
    Research Page Window
    The window name has to be one word.

    also, what is this?
    Code:
    ISMAP name="research_pers" naturalsizeflag="0"

    Code:
    <a href="javascript:" onClick="window.open('research.php?a=1&b','ResearchPageWindow','width=560,height=600')"><img src="images/rsrch_btn.gif" width="68" align="top" border="0" type="image"></a>
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2003
    Location
    RI
    Posts
    22
    Rep Power
    0

    Thanks for the help


    Thanks, your recommendation solved the problem.

    I'm very new to programming so I'll try to answer your question but I might be wrong.

    The ISMAP and naturalsize flag are imagemap attributes. I tried running the code without them, after you questioned their presence, and the java console (?) came up displaying a list of errors.

    However, the code works fine with the attributes in place.

    F.Y.I., I used Dreamweaver when creating the button and the program automatically inserted the attributes.

    Thanks again for your help... greatly appreciated.

IMN logo majestic logo threadwatch logo seochat tools logo