Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2008
    Location
    DownUnder, overlooking South Pole.
    Posts
    984
    Plugin Contributions
    6

    Default onload vs onLoad

    Does it matter if the L in onload is capitalised or not? e.g.

    <body onLoad="init()">

    TIA

  2. #2
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: onload vs onLoad

    Quote Originally Posted by dw08gm View Post
    Does it matter if the L in onload is capitalised or not? e.g.

    <body onLoad="init()">

    TIA
    TTBOMK it makes no difference.

    Cheers
    Rod

  3. #3
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: onload vs onLoad

    The correct way when using XHTML (which the default template does) is all lowercase. If just using standard HTML it was typically mixed-case.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. Javascript window.onload=function placement
    By usr50 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 11 Apr 2011, 10:53 PM
  2. Greybox Onload Problem
    By blackwolf in forum General Questions
    Replies: 0
    Last Post: 4 Jun 2010, 06:17 PM

Posting Permissions

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