Announcement

Collapse
No announcement yet.

Invalid Attribute

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Invalid Attribute

    Hi All

    I have added a navigation bar through dreamweaver onto my site, however when i validate it for compliance etc., i get an error message regarding - onload="".

    The full code for each button is:

    <a href="AboutUs.htm" target="_top" onClick="MM_nbGroup('down','group1','AboutUs_Up','',1)" onMouseOver="MM_nbGroup('over','AboutUs_Up','Buttons/AboutUs_Over.png','',1)" onMouseOut="MM_nbGroup('out')"><img src="Buttons/AboutUs_Up.png" alt="ABOUT US" name="AboutUs_Up" width="150" height="30" border="0" onload="">

    Can anyone advise what i cant put in between the "" or whether i can delete this attribute as is brings up an error for each button.

    Cheers

    Lee

    #2
    quick answer, delete it and see if it works...if it doesn't Ill see if I can find out more when Im in the office
    Web design Bradford

    Comment


      #3
      The onload attribute can only ever be applied to the BODY tag, which is why you get this error. You can safely delete it.
      www.gbradley.co.uk
      Web Development, Actinic Patches, Scripts & more

      Comment


        #4
        Actually, onload has been valid within <img..> tags since Internet Explorer 4, but is probably redundant in your case.
        Norman - www.drillpine.biz
        Edinburgh, U K / Bitez, Turkey

        Comment


          #5
          Thanx for yr help guys.

          Comment


            #6
            Actually, onload has been valid within <img..> tags since Internet Explorer 4
            You learn something new every day!
            www.gbradley.co.uk
            Web Development, Actinic Patches, Scripts & more

            Comment

            Working...
            X