Open link in new tab??

Salam yer..
hah mest korang pening..
apa open link in new tab nie..
mcm nie..bila korang nk bkk link..korang xyah nk susah2 Right-click link tuh..trus ja tkan nanti dia kluar kt new tab..mcm kt blog saya..bila korang tekan link..dia kluar kt new tab kan???
jom..jom...cepat buat

Step 1:
Dashbord > Design > Add a gadget > HTML/JavaScript

Step 2:
Copy code kt bawah nie kt ruangan html tu

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


Step 3:
tara!!dh siap!!

credit to CSGM lg


Oh man! Cepat komen ^_^

3 orang Baik hati:

FasyaNgokNgek said...

assalammualaikum :)
hallu hee. na tanya sikit bole? oke banyak la kut actually :)

1. cene eh na buat tulisan mcm yg CIK LINA JALIL comel comel kat atas tu?
2. cene eh na tuko background yg comel lote kiut miut mcm cik lina punya ni. tapi bukan la sebijik sejibun cik lina punya :)
3. cene na buat shoutbox tu? puas duk godek godek sana sini tapi ta reti reti juga :)

haa cukp la kut stakat ni. hee sorry le awok ni buta IT :D

harap sudi membantu. tenkiu :)
assalammualaikum..

Cik Lina said...

@FasyaNgokNgek

1)yg tulisan cik lina jalil kt header tu..saya guna xara 3D..fasha nk dnwload jer xara 3D..pastu boleh la godek2...

2)nk tukar background??senng jer..fasha google jer wallpaper yg cntik2 lpas tu fahsa save..lpas tu guna la untuk bt background fasha

3)sal shoutbox tu..fasha tgk tutorial yg saya bt..kt situ semua ada..

ok fasha..fhm x??kalau x fhm..tnya jer lagii..its ok

FasyaNgokNgek said...

wohoo tenkiu so much cik lina comel :D