PDA

View Full Version : dead button in mozilla


vazz
August 24th, 2004, 12:14 AM
hi,
it is a first step of registration and the button doesn't work in Mozilla
please help ...

<INPUT type="button" onclick="javascript:if (document.forms('new_account_user_info').Email.val ue!=document.forms('new_account_user_info').EmailC onfirmation.value) {alert('Your email entries must match. Please check both. ');document.forms('new_account_user_info').EmailCo nfirmation.focus();} else {CheckForm('new_account_user_info','FirstName,Last Name,Address1,ProvinceId,PostalCode,PhoneArea,Phon eNumber,Email,EmailConfirmation');}" value="Next &gt;&gt;" id=button1 name=button1>

thanks a lot,
vazz

degsy
August 24th, 2004, 03:40 AM
it's most probably to do with the name.

Instead of using document.forms

use document.getElementById or document.nameofform.


In Moz, load your page and then goto the address bar and type
javascript:

it will load the javascript debugger