SitePoint Sponsor

User Tag List

Page 2 of 2 FirstFirst 12
Results 26 to 27 of 27
  1. #26
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,820
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    Why do people keep mis-spelling the JavaScript event handlers such as onclick, onmouseover, onfocus etc. JavaScript is case sensitive and requires them to be all lowercase. XHTML is case sensitive and requires them to be all lowercase. HTML is not case sensitive and so you can spell it there as OnClIcK or oNcLICK or what ever upper/lowercase combo you like but you'd still be better off spelling it correctly just in case you decide to modernise your code and move the JavaScript out of the HTML into a separate file where it belongs.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">

  2. #27
    SitePoint Evangelist happyoink's Avatar
    Join Date
    Jan 2008
    Location
    UK
    Posts
    503
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Okay, thanks.


Bookmarks

Posting Permissions

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