What is an onclick?



What is an onclick?..

Answer / Vijendra Singh

`onclick` is an event attribute in HTML that assigns a JavaScript function to be executed when the element to which it is attached is clicked.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More JavaScript Interview Questions

Difference between window.onload and onDocumentReady?

1 Answers  


Is javascript server side or client side?

1 Answers  


Why javascript is called lightweight language?

1 Answers  


How to achieve inheritance in javascript?

1 Answers  


How to convert json string to object?

1 Answers  


What are screen objects?

1 Answers  


What is the difference between == and ===? Which one would you use?

1 Answers  


Explain the difference between java and javascript.

1 Answers  


Define escape() function?

0 Answers  


How to use external JavaScript file?

1 Answers  


What is a closure and why are they so useful to us?

1 Answers  


What is data type in javascript?

1 Answers  


Categories