Saturday, 18 February 2012

Open new tab




Hey , Assalammualaikum dan selamat sejahtera rakyat Malaysia :) Kite nak buat tutorial niyy . tahu tak ? tahu tak ? dah taww lha kann ~ tutorial apa ? apa-apa je lhaa . nampak tak tajuk tuu ? nampak tak ? Ha ! tutorial tuu lhaa . Btw , klikk lhaa sinii dulu -> SINI .
okay , let's start now :)

Dashboard - Design - Add A Gadget - Html


 <!-- 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("URL") < 0 //not links that are 'inside' blog
&& arr[i].href.indexOf("javascript:") < 0) //not javascript links
arr[i].target = "_blank";
}
</script>
Lepas tuhh dah boleyhh savee :) Bye !
Dah baca ? Like kalau suka :)

0 comments: