HighDots Forums  

onClick message dissapears

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss onClick message dissapears in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
rrae@washpol
 
Posts: n/a

Default onClick message dissapears - 06-10-2008 , 05:17 PM






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!


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.