The time now is Sat Nov 21, 2009 10:27 pm
All times are GMT
|
Urban Legend
Site Admin

Joined: 02 Jan 2006 Posts: 129
|
Posted: Sat Jan 14, 2006 9:35 pm Post subject:
Useful JavaScript Snippets
Subject description: Small javascript snippets to improve your site
|
|
|
Here are some small and common javascript snippets which can be usefull :
"Add to favorite" link | Code: | | <a href="javascript:window.external.AddFavorite(parent.location.href, parent.document.title)">Add to Favorites</a> |
Link to print the current page | Code: | | <a href="#" onClick="window.print()">Print Page</a> |
Break out of Frames | Code: | <script language="javascript" type="text/javascript">
<!--
if (self != top) top.location = self.location;
// -->
</script> |
Print a message in the status bar | Code: | <script language="javascript" type="text/javascript">
<!--
window.status = "<TYPE YOUR MESSAGE>";
// -->
</script> |
Feel free to post other pieces of Javascript you find usefull
|
|
| Back to top |
|
 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
| Webmaster Community: Latest Discussions |
|
|
| Link to this Page |
|
If you want to link to this page you can use the following URL:
Example:
|
|
| The WebMasters Web-Ring Community
|