File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes from is getting submitted when 'Refresh' button is clicked Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply locked New topic

from is getting submitted when 'Refresh' button is clicked

Madhu Bompaly

Joined: Oct 11, 2007
Posts: 17
Hi every one,

I have a form which is getting submitted when I click on the 'Refresh' button the browser,Iam submitting the form using Javascript function form.submit();.
after I submit the from by clicking on submit button,and click on the Refresh button the form is getting is submitted again.
for my submit button I have set input type="button".
can some one please tell me how to correct this issue.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63865

Please do not post the same question more than once. Continue any discussion in your original post.
[ October 26, 2007: Message edited by: Bear Bibeault ]

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: from is getting submitted when 'Refresh' button is clicked
It's not a secret anymore!