By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,238 Members | 1,518 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,238 IT Pros & Developers. It's quick & easy.

passing form onsubmit value for IE using Javascript in DOM scripting

P: 1
I am dealing with forms with respect to dom scripting ,

in the form for the on submit event , it has areturn value ie

form.onsubmit = ' return Search();' ;

this seems to work in Mozilla but not in IE

i also tried ,

Form.onsubmit = function submitSearch()
return Search();

Search is a javascript function which searches for the data entered in the search box on submit it should display results ..

I am surprised as this works fine in Mozilla bit not intrenet explorer

but to my vain, its still not working......
Please Help me,, any help will be appriciated

Dec 4 '06 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 15k+
P: 16,027
Something like this should work:
Expand|Select|Wrap|Line Numbers
  1. form.onsubmit = function() {
  2.     return Search();
  3. }
where 'form' is a reference to the form.
May 31 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.