D
David C
I have an aspx page with Javascript that shows a message from a hidden
textbox as shown below.
var vmsg = document.getElementById('txtMsg');
if (vmsg.value != '') {
alert(vmsg.value);
document.getElementById('txtMsg').value = '';
}
I would like to have the alert box display for 3 seconds and then close. I
have tried the window.setTimeout with no success. Is there a way to
accomplish this? Thanks.
David
textbox as shown below.
var vmsg = document.getElementById('txtMsg');
if (vmsg.value != '') {
alert(vmsg.value);
document.getElementById('txtMsg').value = '';
}
I would like to have the alert box display for 3 seconds and then close. I
have tried the window.setTimeout with no success. Is there a way to
accomplish this? Thanks.
David