javascript:alignCSS() Can someone explain this?

Discussion in 'JavaScript' started by learnwebsitedesigncom, Jul 22, 2015.

  1. #1
    Hi guys and girls, can someone explain the following to me?

    <body onresize="javascript:alignCSS()">

    The part that I've never seen is the "javascript:alignCSS()" part. I know the body tag and the Javascript onresize event and I'm assuming that "alignCSS() is a function but I've never seen it written as "javascript:alignCSS()". Can someone explain this to me?

    Thanks
     
    learnwebsitedesigncom, Jul 22, 2015 IP
  2. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #2
    I would assume that said function is declared in a library loaded elsewhere on the page... so start looking there.

    Though really if you encounter scripts using ANY of the 'onevent' attributes in the markup, you can universally assume the page is outdated poorly written crap.

    Generally speaking 90%+ of the time you see ANY attributes on the BODY tag you can assume that too.
     
    deathshadow, Jul 23, 2015 IP