UpTest > Web Development Internet Programming > DHTML Test

Test: DHTML Test

Question 26: Prev Next
The following statements show two ways of calling a JavaScript function:

i)onclick = "a()"
ii)onclick="javascript:a()"

a() refers to a function written in JavaScript.

Which of the following statements is correct with regard to the above two statements?
There is no difference between the two statements
The first statement is incorrect and the second one is correct

Please login to submit your answer.