'JavaScript not redirect
I am using the below JavaScript code for redirect to another page, but it is redirect to the default page. can any one suggest what should I do?
<input type="image" name="btnContinue" id="PromotionEntry1_imgbtnContinue" src="images/accept-button-orange.gif" onclick="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("btnContinue;, "", true, "", "", false, false))" style="border:0;" /><br />
Solution 1:[1]
If you simple want to redirect then use an hyperlink/anchor instead of
using <input type="image" />
normally input controls are used to send some data to the server and to do a postback.
You can use this
<a href="Give the link where you want to redirect">
<img src="Your image path" />
</a>
The above HTML will redirect to the href value of < a >.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Daedalus |
