Expert Developer JavaScript Question:
Download Questions PDF

How can a particular frame be targeted, from a hyperlink, in JavaScript?

Expert JavaScript Developer Interview Question
Expert JavaScript Developer Interview Question

Answer:

This can be done by including the name of the required frame in the hyperlink using the 'target' attribute.

<a href="newpage.htm" target="newframe">>New Page</a>

Download Expert JavaScript Developer Interview Questions And Answers PDF

Previous QuestionNext Question
Why would you include 'use strict' at the beginning of a JavaScript source file?What is Screen object?