I would like to know ALL the attributes of HTML elements which can accept JavaScript, like onLoad, onBlur events, submit attribute of forms, etc.
Is there any such comprehensive list?
I would also like to know if there is any easy way to select all of the attributes using jQuery.
Thanks!
2 Answers
go through the following link,you will get your answer
4 Comments
R R
@everconfusedGuy if i answered your question than u can mark my answer as answered.thanks.
everconfusedGuy
haha I tried to..apparently I can accept your answer only after 10 minutes, dont know why. Will do it then
Jukka K. Korpela
w3schools should not be used as a reference of any kind, or at all, see w3fools.com
everconfusedGuy
@JukkaK.Korpela Yup but I at least wanted to start off somewhere. Is there any better way of finding out all possible JavaScript in a HTML page?
Window Event Attributes
onafterprintNew
onbeforeprintNew
onbeforeunloadNew
onerrorNew
onload script
onmessageNew
onofflineNew
ononlineNew
onpagehideNew
onpageshowNew
onpopstateNew
onredoNew
onresizeNew
onstorageNew
onundoNew
onunload
Form Events
onblur
onchange
oncontextmenuNew
onfocus
onformchangeNew
onforminputNew
oninputNew
oninvalidNew
onselect
onsubmit
For Full Refrence
1 Comment
everconfusedGuy
I would also like to know other attributes like submit attribute of the form tag, etc
href="javascript:alert('foo')"? And what would you do with the information?javascript:alert("foo")Is there any way of doing that?