By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,238 Members | 1,169 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,238 IT Pros & Developers. It's quick & easy.

is this syntax correct?

P: n/a

onClick="javascript:myFunction()"

or does it HAVE to be

onClick:"myFunction()"

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
Jul 23 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
In article <34*************@individual.net>, fd***@yahoo.com says...

onClick="javascript:myFunction()"

or does it HAVE to be

onClick:"myFunction()"

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


onclick="myFunction();"

--
Hywel http://kibo.org.uk/
I do not eat quiche.
Jul 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.