/    Sign up×
Community /Pin to ProfileBookmark

firefox <button> inside form

i noticed this problem in firefox browser
i have a form that contain a submit button written as

[code]<inpty type=submit>[/code]

if i add any other button in side the form for doing some javascript actions for me
firefox treat this button as submit button for that form
IE does not do that

to post a comment
HTML

2 Comments(s)

Copy linkTweet thisAlerts:
@ZnupiSep 30.2007 — First of all, could you please check your spelling before posting a message? You typed [b]inpty[/b] instead of input....

This is normal behavior, Opera is the same, not only Firefox, and I bet other browsers like Safari, etc, behave alike. The way to fix it is by using
&lt;input type="button"&gt;
or
&lt;button type="button"&gt;
Good luck ?
Copy linkTweet thisAlerts:
@sakherqauthorSep 30.2007 — yes it is input not inpty

thanks
×

Success!

Help @sakherq spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.22,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...