ExamVeda
Login
Home
Server Side and Client Side Scripting
?

Which of the following is a way of embedding Client-side JavaScript code within HTML documents?

Answer & Solution
Correct Answer: Option B
The Client-side JavaScript code is embedded within HTML documents in four ways :
1. Inline, between a pair of “script” tags
2. From an external file specified by the src attribute of a “script” tag
3. In an HTML event handler attribute, such as onclick or onmouseover
4. In a URL that uses the special javascript: protocol.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.