Auto Redirect dengan java script

Untuk mengautoredirect dari domain a ke domainb maka di domaina di index.htmlnya diisi script berikut :


<html><head>
<title>AutoRedirect</title>
<base target="_self">
</base></head>
<body onload="go()">
<script LANGUAGE="JavaScript">
function go(){
var url ="http://domainb.com"
var target="_self"
window.open(url,target)
}
</script>
</body>
</hml>

4 thoughts on “Auto Redirect dengan java script

  1. omz…itu klo dr domain a ke domain B
    gimna script direct nya dr freehosting ke domain?
    misalnya aku udah buat webnya di free hosting semisal geocities
    nah truz aku beli domain http://www.percut.org
    nah gimna script nya klo org buka domain url percut.org langsung kebuka web aku yg di geocities tadi

    please bimbingan nya omz
    thx before 🙂
    balasan nya kirim ke mail aku aja ya
    [email protected]

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.