SuneelKumar Machha
impo
1 Answer(s)      4 years and 3 months ago
Posted in : JavaScript Questions

how we redirect page to particular url after cheching one checkbox

Advertisement
View Answers

January 12, 2011 at 3:37 PM


Hi Friend,

Try this:

<html>
<script>
function redirectPage(){
if(document.getElementById("check").checked){
window.location.replace("http://www.roseindia.net");
}
}
</script>
<input type="checkbox" id="check" onclick="redirectPage();">
</html>

Thanks










Related Tutorials/Questions & Answers: