Monday, 14 March 2011

Tutorial right click on new tab


Assalamualaikum..tutorial again..ade bdk nie request..tp,lpe kt mne dyer request..haha!!link dyer pon x jumpe.. :D Ok..cre2 dyer cmni..

1. Design-->Add Gadget-->HTML/JavaScript
2. Paste kod kat bwh nih..

<!-- code for turning all non-blog links to new page links -->
    <script type="text/javascript" language="javascript">
       var arr = document.getElementsByTagName("a");  //get all links in the page
       for(var i = 0; i < arr.length; i++)
       {
          if(arr[i].href.indexOf("Your URL") < 0 //not links that are 'inside' blog
             && arr[i].href.indexOf("javascript:") < 0) //not javascript links
             arr[i].target = "_blank"; 
       }
    </script>

3. Save!
4. Tak jadi bgtaw k??

Source : Google




Dah bace??seperti biasa yer teman2,komen lah..


No comments: