Open link in new tab

So today tutorial ni I want to teach you guys how to open link in new tab.

1step Dashboard - Design - Add Gadget - HTML/JavaScript

Copy and paste code below in HTML / JavaScript

<!-- 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>

So done , easy right ? Just need a few minutes to complete this tutorial. Enjoy guys :face76: