Tutorial : Open New Tab

by - 12:24 PTG



opss sorry.. my cute baby is here ;D

Assalamualaikum :)

Apa khabar korang.. lame kan arrien tak uptade blog.. hehe sorry.. i'm very2 lazy ~
Hari nie arrien nak buat tuto untuk korang lagi yea.. tuto about Open New Tab.. arrien rasa mesti dah ramai yang tahun kan macam mana nak buat bagi Oen New Tab kan?? but arrien juga rasa ramai lagi yang tak tahu,terutama newbies right?? oke jom ikot tuto nie :)

1. Dashboard > Layout > Add a Gadget > HTML/JavaScript.
2. Kemudian korang copy dulu code bawah nie yea -->>

<!-- 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. Next paste kan code tadi didalam kotak HTML/JavaScript tu yea.
4. Now save.. Done!!.

~ Tak caya,ce korang cuba.,korang tekan je mana2 LINK and than dye akan keluar di New tab kan!!~
Oke semoga berjaya *^_^

You May Also Like

0 Comments