/    Sign up×
Community /Pin to ProfileBookmark

Email confirm popup box

I am trying to find a Javascript that when an email address is entered and you use and onChange event to continue a window will popup and ask you if you entered your email address correctly if answer is yes then the box will close and you will continue on if the answer is no or cancel the box will close and you will have to correct your email address.

Here is the script on the email field –

Enter Your Email Address:
<input type=”TEXT” name=”EMAIL” size=”30″ maxlength=”30″ tabindex=”4″ onChange=”emailvalidation(this,’The E-mail is not valid’);”>

Is this possible? I have found javascript popup window but non that I can get to work at least ways not the way I expect them to work.

Please help!

to post a comment
JavaScript

5 Comments(s)

Copy linkTweet thisAlerts:
@NedalsMay 12.2008 — Post what you have tried.
Copy linkTweet thisAlerts:
@ammwebmaster2authorMay 13.2008 — There have been several I have tried but none that work the way I want. I want a person to fill in there email address and when they either tab or click out of the field I want a box to pop up that says something like Please confirm that your email address is correct if they click YES the box will go away and they can continue on. If they Click CANCEL it will take them to the email field again and they can retype their email address.

One I tried which is what prompted me that I wanted something different is:

http://lab.artlung.com/compare_fields/

This one I didn't understand at all what I was supposed to do with:

http://techtamasha.com/?p=32

This one I wasn't sure how to work in and I don't want them to go to another link if they click YES.

http://www.aspnetcenter.com/cliktoprogram/javascript/alert.asp

So if you can help I would be very greatful.

Hope this helps you to understand what I am looking for and hopefully guide me in what I need to do.

Thanks!
Copy linkTweet thisAlerts:
@nischalshettyMay 13.2008 — I've tried to construct an example from what I could gather about your problem.

Check it out here : http://www.techtamasha.com/testEmail.html

If this is not what you want then please elaborate a bit more on what exactly you are trying to achieve. I'll be more than eager to help ?

And hey, If you had left a comment on my site regarding your problem I would have tried my best to solve it then and there ?

Cheers,

Nischal Shetty

techTamasha
Copy linkTweet thisAlerts:
@ammwebmaster2authorMay 13.2008 — I am sorry I was not very clear. What I am wanting is a person filling out our email sign up form and when they enter their email address and use an onChange (trying to avoid a click button to do the check) then a popup box would ask them "are you sure you entered your email address correctly" with an OK button on the popup and a Cancel. If they say OK they would continue to fill out their form. If they say Cancel it would take them back to the email field and they would re-enter their email address and continue on.

I will include the url of our page for you to see what I am talking about:

http://www.amm.org/emailsignupalert2.asp.

I was also trying to work validation into for the email to validate the @ and . once they enter the email.

I hope this helps. Thank you for your help!
Copy linkTweet thisAlerts:
@NedalsMay 13.2008 — That tells me what you looked at, but not what you tried
....our page...[/QUOTE]You already know some javascript.

This is not really difficult...
<i>
</i>[b]onchange[/b] get [b]value[/b] on email field
[b]test[/b] using a [b]regular expression[/b]
if error {
use [b]confirm[/b] to display message
[b]focus()[/b] on email field
[b]return false[/b]
}
[b]return true[/b] to submit
×

Success!

Help @ammwebmaster2 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.26,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...