Javascript - Capturing IE Message Reply - TechRepublic
General discussion
August 14, 2001 at 01:56 PM
heartyguffaw

Javascript – Capturing IE Message Reply

by heartyguffaw . Updated 24 years, 10 months ago

Is there a way, through Javascript, to capture the Internet Explorer security message response when submitting a form using the Mailto action.

I am doing this for a corporate intranet. All users are on IE 5.01 and using Outlook 2000 for e-mail. ASP pages or CGIs to capture the form data is not allowed. Client-side programming is the only option.

IE 5 will display a security message informing the user the form will be submitted using E-mail and their e-mail address will be revealed. Users need to click OK or Cancel on the message.

I wish to branch to a Thank You web page if users click OK or to a Form Cancelled web page if users click Cancel to the IE security message.

Javascript is:

I have a button with an onclick action that branches to the submitform function.

Using the

if (myform(submit())

statement pauses execution of the script until the users clicks OK or Cancel on the IE security message, but the answer is always false.

Outlook 2000 processes the form data just fine. I would just like a way to send the users a message when they click on the Cancel button.

Is there a way to capture this message and achieve the results I’m looking for?

This discussion is locked

All Comments