Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

calling button onclick in Firefox

Status
Not open for further replies.

mansii

Programmer
Oct 18, 2002
641
0
0
ID
To the point:

Code:
<script>
function allchecked(){
alert("OK");
}
In IE 5+:
Code:
<button onclick="allchecked();">Check it</button>
works just fine (indicated by the alert), but NOT in Firefox.

Any shed?

Regards
 
No..It works fine with IE and FF.
Code:
<script>
function allCheck()
{
alert("OK");
}
</script>
<input name="but" type="button"  value="Tmp" onClick="allCheck();">
<button onClick="allCheck();">Checkit</button>

Sharing the best from my side...

--Prashant--
 
Yeah, sure. It was a typo, my mistake.

Thank's.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top