how to redirect visitor from one website to another website using java script

Introduction: In previous articles I explained How to Fill CheckBoxList from Sql Server table in,VB)  and Fill CheckBoxList based on DropDownList selection in, VB)  and How to get CheckBoxList selected items in comma separated format in,VB) and  how to  show Message box in website using JavaScript  and How to call java script function from code behind file in

Some times we require that when some one visit  then he should be redirected to another site like So for that we need to add peace of javascript code in the head tag of the default page of the website and it will automatically redirect the  visitor to site. 

Lets create an web application to redirect visitor from one website to another website using JavaScript
  • In the <HEAD> tag create a JavaScript function as:
<head runat="server">

    <script language="javascript" type="text/javascript">

Next Post »

If you have any question about any post, Feel free to ask.You can simply drop a comment below post or contact via Contact Us form. Your feedback and suggestions will be highly appreciated. Also try to leave comments from your account not from the anonymous account so that i can respond to you easily.. ConversionConversion EmoticonEmoticon