|
|
|
#1 |
|
Messages: n/a
Hébergeur: |
I used some javascript to make a "thank you for subscribing" message appear
after someone clicks a submit button to subscribe to an email list. The problem is, it stays for about 2 seconds, then goes away. Does anyone know how to make it stay after the button is clicked? here is the code I used: <script type="text/javascript"> function changeText(){ document.getElementById('emaillist').innerHTML = 'Thank you for subscribing'; } </script> <input type=submit value="Submit" onclick='changeText()'/> </p><h2><b id='emaillist'>[/b] </h2> Thanks! |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
> clicks a submit button to subscribe to an email list The normal thing to do is have the script processing the form do a redirect to a success page. If the form's action is a mailto: it will be unreliable. -- Alan Adobe Community Expert, dreamweaver http://www.adobe.com/communities/experts/ |
|
![]() |
| Outils de la discussion | |
|
|