SteveH
08-21-2008, 07:06 PM
Hello
I have a Web page which will eventually be put onto a CD. There is a disclaimer at the front and the visitor ticks an 'I agree' or 'I disagree' checkbox.
If the 'I agree' checkbox is ticked, the visitor is redirected to the next page.
At the moment, if the 'I disagree' is checked, nothing happens.
This is the code I have:
<table><tr><td>
<label><input type="checkbox" name="CHKBOX_1" value="1" unchecked="unchecked"><font size="2" face="tahoma">I do <b>not</b> accept the terms and conditions</font></label>
</td><td><label><input type="checkbox" name="CHKBOX_2" value="2" onclick = "redirect()" unchecked="unchecked"><font size="2" face="tahoma">I <b>do</b> accept the terms and conditions</font></label>
</td></tr></table>
Is there a way, in JavaScript, to exit the user back onto his desktop (that is, out of the CD altogether) if he clicks 'I disagree'?
Thanks for any advice.
Thanks.
Steve
I have a Web page which will eventually be put onto a CD. There is a disclaimer at the front and the visitor ticks an 'I agree' or 'I disagree' checkbox.
If the 'I agree' checkbox is ticked, the visitor is redirected to the next page.
At the moment, if the 'I disagree' is checked, nothing happens.
This is the code I have:
<table><tr><td>
<label><input type="checkbox" name="CHKBOX_1" value="1" unchecked="unchecked"><font size="2" face="tahoma">I do <b>not</b> accept the terms and conditions</font></label>
</td><td><label><input type="checkbox" name="CHKBOX_2" value="2" onclick = "redirect()" unchecked="unchecked"><font size="2" face="tahoma">I <b>do</b> accept the terms and conditions</font></label>
</td></tr></table>
Is there a way, in JavaScript, to exit the user back onto his desktop (that is, out of the CD altogether) if he clicks 'I disagree'?
Thanks for any advice.
Thanks.
Steve