469,307 Members | 1,978 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,307 developers. It's quick & easy.

passing form onsubmit value for IE using Javascript in DOM scripting

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
1 2180
16,027 Expert Mod 8TB
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.

Similar topics

7 posts views Thread by greg brant | last post: by
11 posts views Thread by HolaGoogle | last post: by
2 posts views Thread by Richard | last post: by
5 posts views Thread by bjorgenson | last post: by
13 posts views Thread by teddy.am | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by harlem98 | last post: by
1 post views Thread by Geralt96 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.