MCQs > IT & Programming > DHTML > 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 statement is correct with regard to the above two statements?

DHTML MCQs

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?

Answer

Correct Answer: There is no difference between the two statements

Explanation:

Note: This Question is unanswered, help us to find answer for this one

DHTML Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

DHTML Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it