Forums

This topic is locked

Popup windows!

Posted 27 Mar 2003 18:10:55
1
has voted
27 Mar 2003 18:10:55 Henrik Sandeberg posted:
I have one page with users and a button for each user with delete, when i hit delete it goes to the next page and it will be deleted, my question is how do i make a confirm message box or a confirm page in a popup window before deleting? Because when im making it will not pass the variables....

Replies

Replied 28 Mar 2003 15:48:14
28 Mar 2003 15:48:14 Vince Baker replied:
place this inside the tag for your button:

onClick="popupCnfrmMsg('Enter your message text here');return document.returnValue"

and then place this within the head of your document

<SCRIPT LANGUAGE="JavaScript">
<!--

function popupCnfrmMsg(msg) {
document.returnValue = confirm(msg);
}
//-->
</script>

and that will work!

Regards
Vince

Visit my home: www.chez-vince.com

VBScript | ASP | HTML | SQL | Oracle | Hosting

Reply to this topic