Sunday, January 13, 2019

USING IFRAME AS TARGET AS LINK

USING IFRAME AS TARGET AS LINK :

An iframe can be used as the target frame for a link ,the target attribute of the link must refer to the name attribute of the iframe.

EXAMPLE:-

<html>

<body>

<iframe width="100%" height="300px"
src="d_iframe.htm" name="iframe_ex">
</iframe>

<a href="http://www.google.com
/demo12" target="iframe_ex">
IFRAME-TARGET</a>

<p>When the target of a link matches 
the name of an iframe, the link will 
open in the iframe.</p>

</body>

</html>


OUTPUT:-
sk.1
sk.2

No comments:

Post a Comment

Internal Javascripts

Internal Javascripts :    The script code can be written directly into the HTML document. script code is placed in header of the docume...