It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Partner Sites
Board index Programming HTML Forum Script-archive

STOP BEEP SOUND WHILE SUBMITTING FORM

Share your completed scripts.

STOP BEEP SOUND WHILE SUBMITTING FORM

Postby vsharma1926 on Tue Aug 18, 2009 9:36 am

I have many controls on my form, when i use enter key to submit the form i get beep sound however submit works fine, please let me know how to stop that beep sound also i am not using type="submit", instead onclick is used when user clicks form gets submitted. While click no problem everything is fine but on ENTER key press beep sound comes.
Below is code i am using

function catchEnter(e)
{
if (!e) var e = window.event;
if (e.keyCode) code = e.keyCode;
else if (e.which) code = e.which;

if (code==13)
{
//alert(document.filterForm.from_date.value);
//return validateDate(document.filterForm.from_date);
if(validateDate(document.filterForm.from_date))
{
return SubmitPage('NU');
}
else
{
alert("false");
}
//alert(return validateDate(document.filterForm.from_date));
//document.forms[0].onsubmit = returnFalse;
//QuickSearch();
return true;
}
return ;
}
vsharma1926
 
Posts: 1
Joined: Tue Aug 18, 2009 8:41 am

Return to Script-archive

Who is online

Users browsing this forum: No registered users and 0 guests