Many organizations have adopted the cloud. Read about their cloud solutions in our eBook and what you can do for your business. Post a comment Email Article Print Article Share ArticlesShare articles Top 10 JavaScript Snippets for Common Tasks By Scott Clark Web developers often use JavaScript for common tasks on their websites. In this tutorial we'll show you the top 10 JavaScript snippets you can use on your webpages by just cutting and pasting! In this article we're going to cover the following popular script snippets! Date display Calendar Close Window Copy Selected Text Back to Previous Page Focus OnLoad Break out of Frames Add to Favorites IP Address Specify Referring Page Date Display You can use this snippet to display the current date in this format: Friday, June 11, 2010. Just paste the following code where you want the date to show up on your page: