PHP קוד:
<script language="javascript" type="text/javascript">
function rem(){
x = confirm("Remember! you will not be able to enter this page in the future. make sure that you download all you products! click 'cancel' for return to the page and download. click 'OK' for exit.");
if(x == true){
} else {
return false;
window.location=("http://link...");
}
}
</script>
<body bgcolor="#FFFFFF" onunload="rem();">
זה הקוד שלי...
אני בעצם רוצה שאם הגולש יצא מהדף זה יקפיץ לו הודעה שאם הוא ילחץ אישור אז זה יצא לו לאן שהוא רוצה
ואם הוא לוחץ ביטול אז זה ישאיר אותו בדף...
וככה זה לא עובד לי
גם אם הוא לוחץ ביטול זה עדין מעביר אותו