Correct Answer: <div onclick="function1();" id="id1">
Explanation:
Note: This Question is unanswered, help us to find answer for this one
JavaScript Skill Assessment
Your Skill Level: Poor
Retake Quizzes to improve it
More JavaScript MCQ Questions
Result of c? function a(name) {this.name = name;} var b = new a(); var c = typeof(b.name);
Consider the code: function a() {} function b() {} Which statement makes 'a' object inherit from 'b' object?
In the web browser, global objects are properties of window object.
Value of c in the following code? function a() {} var b = a(); var c = typeof(b);
In the W3C model, if you attach an anonymous function as an event handler of an element using addEventListener, how can you remove that anonymous function?
In JavaScript, the encodeURI() function is used to encode special characters. Which special characters is/are an exception to that rule? A. £ B. € C. @ D. $
Which will toggle a div element's background color? Toggle
What would be the use of the following code? function validate(field) { var valid='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'; var ok=''yes''; var temp; for(var i=0;i
Which statement is correct?
In an HTML page, the form tag is defined as follows: