this is my script:
[CODE]
<script type=”javascript”>
function killYourSelf() {
var answer = confirm(“Please, do us all a favor and kill yourself”)
if (answer){
location = ‘http://community.scholastic.com/attachments/scholastic/snapshot35/84/1/Thank%20You%20Bodies.jpg’;
}
else{
alert(“Wrong, please try again!”)
}
}
</script>
<a href=”javascript:killYourSelf()”>Click Here</a>
So bassically, this script opens a confirm box that asks the user to kill themselves, If they press OK, then it should bring them to a picture of bodies that spell “Thank you so much!”, but if they press cancel, than an alert box will be displayed with the text “Wrong, please try again”. I’m sure the code is pretty straight forward, but shut up and help me ?
but when I click the link nothing happens and ithink it has something to do with the confirm(“”)