000831-4

A link is contained in an HTML frame. How can you indicate (a) that clicking the link will replace the content of this frame, leaving the other frames unchanged, (b) that clicking the link will replace the whole browser window content.

Answer

(a) The attribute

target="_self"

can be specified to the <A> tag specifying the link, but this is not required, since this is the default behaviour.

(b) Add the attribute

target="_top"

to the <A> tag specifying the link.

List of exam questions