My Profile

Wednesday, February 2, 2011

Exercises _ II on Anchor Tag


Exercise 5 : -

Break out of a frame

This example demonstrates how to break out of a frame, if your site is locked in a frame.

<html>
<body>
<p>Locked in a frame?</p>
<a href="http://www.nareshit.com/"
target="_top">Click here!</a>
</body>
</html>

Exercise 6 : -

Create a mailto link

This example demonstrates how to link to a mail message (will only work if you have mail installed).

<html>
<body>
<p>
This is a mail link:
<a href="mailto:someone@microsoft.com?subject=Hello%20again">
Send Mail</a>
</p>
<p>
<b>Note:</b> Spaces between words should be replaced by %20 to <b>ensure</b> that the browser will display your text properly.
</p>
</body>
</html>


Exercise 7 : -

Create a mailto link 2

This example demonstrates a more complicated mailto link.

<html>
<body>
<p>
This is another mailto link:
<a href="mailto:someone@microsoft.com?cc=someoneelse@microsoft.com&bcc=andsomeoneelse2@microsoft.com&subject=Summer%20Party&body=You%20are%20invited%20to%20a%20big%20summer%20party!">Send mail!</a>
</p>
<p>
<b>Note:</b> Spaces between words should be replaced by %20 to <b>ensure</b> that the browser will display your text properly.
</p>
</body>
</html>

----------------------------------------------------------

** If you like this post please like our page in facebook

0 comments:

Post a Comment

Share

Twitter Delicious Facebook Digg Stumbleupon Favorites More