Redirect site into new tab without click

Redirect site into new tab on page load.
Simply edit your index files or other page which you want to redirect
Next put the below code after <html>  and save. site are page is redirect.
Replace http://www.waysofknowledge.blogspot.com with your site where you want to redirect.




<script type="text/javascript">
 function open_in_new_window(url )
    {
    var win=window.open(url, '_blank');//open new url
    win.focus();//focus the newly opened url
    }
</script>
    <body onload="open_in_new_window('http://www.waysofknowledge.blogspot.com')"></body>



Redirect in same page without click

If you want to redirect in same page use these codes like upper .

 <meta http-equiv="refresh" content="1;url=http://www.waysofknowledge.blogspot.com">


Redirect in same page without click using javascript

Also you can use javascript for redirction on same page
Use below codes like others

 <script type="text/javascript">
<!--
window.location="
http://www.waysofknowledge.blogspot.com"
//-->
</script>


If  you have any problem in these codes keep comment and feel free 
 
 

Post a Comment Blogger

 
Top