Hello again all! I found so many helpful people here last time I thought I'd throw this question up to you. It has me stumped more than I thought it would.
Here's the scoop. I have a mailto link that works perfectly fine. What I would like to do is have a javascript prompt with a short informational message, double-checking their reason to use the mailto link. (Getting a LOT of email that isn't necessary.) I'd like to have an "Ok" and "Cancel" button, which by clicking OK goes ahead with the mailto link, but clicking cancel does nothing.
For example, when they click the link (be it still a mailto link or not), I'd like a javascript box to pop up and say "If you need blah blah, then click cancel and go to blah blah. Otherwise click OK to continue." Clicking OK then acts like a normal mailto link would if there was never a javascript at all. Clicking cancel simply cancels all action.
I've searched high and low on the web (Google, pages deep) and even here (Closest match is: thread216-104402 ) without any luck. That last link I posted looks very similar to my question, however it was never answered unfortunately.
I've seen you good javascript programmers come to the rescue many times, would greatly appreciate someone to point me in the right direction of a FAQ/Tutorial. Of course code is greatly appreciated too. =) Thanks guys, looking forward to your replies.
GuidoZ
Here's the scoop. I have a mailto link that works perfectly fine. What I would like to do is have a javascript prompt with a short informational message, double-checking their reason to use the mailto link. (Getting a LOT of email that isn't necessary.) I'd like to have an "Ok" and "Cancel" button, which by clicking OK goes ahead with the mailto link, but clicking cancel does nothing.
For example, when they click the link (be it still a mailto link or not), I'd like a javascript box to pop up and say "If you need blah blah, then click cancel and go to blah blah. Otherwise click OK to continue." Clicking OK then acts like a normal mailto link would if there was never a javascript at all. Clicking cancel simply cancels all action.
I've searched high and low on the web (Google, pages deep) and even here (Closest match is: thread216-104402 ) without any luck. That last link I posted looks very similar to my question, however it was never answered unfortunately.
I've seen you good javascript programmers come to the rescue many times, would greatly appreciate someone to point me in the right direction of a FAQ/Tutorial. Of course code is greatly appreciated too. =) Thanks guys, looking forward to your replies.
GuidoZ