Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Feb 2003
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Java "onClick" & XHTML

    Page will not validate as XHTML with the "onClick" statement to open a new window.

    eg;

    <a href="imageview/879mod8x6view.html" target="_new" onClick="openit('imageview/879mod8x6view.html'); return false;">
    <img src="thumbs/879modthumb.jpg" width="200" height="150" border="0" alt="879mod.jpg" title="View in 800x600 resolution" /></a>

    Script is defined in a external sheet, and worked fine with HTML 4.0

    Has anyone else faced this problem?

    Thank you,
    MIchael
    MLReynolds

  • #2
    jkd
    jkd is offline
    Senior Coder jkd's Avatar
    Join Date
    May 2002
    Location
    metro DC
    Posts
    3,163
    Thanks
    1
    Thanked 18 Times in 18 Posts
    Make the attribute lowercase, "onclick".

  • #3
    New to the CF scene
    Join Date
    Feb 2003
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thank you.....I should have known!
    MLReynolds


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •