is this syntax correct?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Frances Del Rio

    #1

    is this syntax correct?


    onClick="javasc ript:myFunction ()"

    or does it HAVE to be

    onClick:"myFunc tion()"

    I know 'javascript' is not necessary here, but just want to know whether
    to include it (which sometimes I do by mistake) is incorrect syntax or
    not.. thank you.. Frances


  • Hywel Jenkins

    #2
    Re: is this syntax correct?

    In article <34g0mhF49us35U 1@individual.ne t>, fdr58@yahoo.com says...[color=blue]
    >
    > onClick="javasc ript:myFunction ()"
    >
    > or does it HAVE to be
    >
    > onClick:"myFunc tion()"
    >
    > I know 'javascript' is not necessary here, but just want to know whether
    > to include it (which sometimes I do by mistake) is incorrect syntax or
    > not.. thank you.. Frances[/color]

    onclick="myFunc tion();"

    --
    Hywel http://kibo.org.uk/
    I do not eat quiche.

    Comment

    Working...