Works in Firefox, not in IE (sorry if this has been on before!)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • beanpole
    New Member
    • Jul 2009
    • 2

    Works in Firefox, not in IE (sorry if this has been on before!)

    Hi

    I have the below script to open a web page in a new window, it is working in Firefix, but not Internet Explorer. Could any one please shed any light on what is wrong with it?

    Code:
    To view JRA's privacy policy <a href='#' onClick='javascript:window.open("http://www.jraresearch.com/privatepolicystatementsgeneric.htm","privacy policy","width=900,height=600")'><B><U>please click here</B></U></a>
    When this is clicked on in IE I get the message "Error on page" and it says that the error is "Invalid argument"

    Any help greatly appreciated.

    Mark
    Last edited by Dormilich; Jul 22 '09, 02:08 PM. Reason: added [code] tags
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    It's probably caused by the space in "privacy policy". Note that in an onclick, you don't need the "javascript :" protocol.

    Comment

    • beanpole
      New Member
      • Jul 2009
      • 2

      #3
      That's worked - brilliant. Many many thanks for your help!

      Mark

      Comment

      • acoder
        Recognized Expert MVP
        • Nov 2006
        • 16032

        #4
        You're welcome. Oh, and welcome to Bytes! :)

        Comment

        Working...