0

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
  • “All” in which sense? As defined in some specification? Then look at that specification. As implemented in browsers? That would be a large list and would change as browsers change. And “accept Javascript” in which sense? What about e.g. href="javascript:alert('foo')"? And what would you do with the information? Commented Oct 30, 2013 at 6:18
  • I want to analyse all the javascript in a web page. So I would like to collect all executable sources in a webpage. Yeah I also would like to handle the case of javascript:alert("foo") Is there any way of doing that? Commented Oct 30, 2013 at 7:17

2 Answers 2

1

go through the following link,you will get your answer

http://www.w3schools.com/tags/ref_eventattributes.asp

Sign up to request clarification or add additional context in comments.

4 Comments

@everconfusedGuy if i answered your question than u can mark my answer as answered.thanks.
haha I tried to..apparently I can accept your answer only after 10 minutes, dont know why. Will do it then
w3schools should not be used as a reference of any kind, or at all, see w3fools.com
@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?
0

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

http://www.w3schools.com/tags/ref_eventattributes.asp

1 Comment

I would also like to know other attributes like submit attribute of the form tag, etc

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.