May 20, 2011

Create a single link for all ur favourite websites....

   Everytime we may  be opening certain same websites like I will be always opening gmail, blogger,facebook and google wave... Its really a teadious work to click all the bookmarks for these pages each time you open the browser... So friends, here is a nice javascript code ( developed by myself )  to open multiple links from a single link... This javascript also has the feature to close all the tabs u opened using this link.... I bet it saves a lot of ur time.... For any help regarding this, just comment under this blog...
                     
Copy the above code in text editor such as windows notepad.. and save as html...
edit the code and change www.site u wanted .com to ur required sites
*******************************************************************

<html>
<head>
<title> My multi bookmark</title>
<script language="javascript">

function OpenChildWin(){
   //to add more sites , just add win4,win5 with similar window.open function
win1 = window.open('http://www.site u wanted1.com');
win2 = window.open('http://www.site u wanted 2.com');
win3 = window.open( 'http://www.site u wanted 3.com');
    }
    function CloseChildWin(){
//dont forget to add  '.close'  fn to newly added bookmarks
win3.close();
  win2.close();
  win1.close(); }
 
 function CloseCurrent(){
  window.opener=window.open('','_self','');
  window.opener.close(); }
</script>
</head>

<body>

 <a href="javascript:OpenChildWin();">
my websites</a><br />
<a href="javascript:CloseChildWin();">
Close my websites</a><br />
<a href="javascript:CloseCurrent();">
Close this window</a>
<br />

<br /><br /><br />you have the full authority to edit this code and share it..
www.lethaltrix.blogspot.com

 </body>
</html>

*************************************************************************
You can add more websites to this by adding win4, win5 etc into OpenChildWin function as the others have been done.. if u added more than the given  slots dont forget to add close function in CloseChildWin function


.....
If u have any difficulty in editing the code ,pls feel free to contact me and the specify the websites u wanted as bookmarks . I will create one for U and mail it (absolutely free service).....


No comments:

Post a Comment