I have some javascript code (see below) that works with IE but with Netscape it resets the values but then processes the whole page after resetting. IE doesn’t process anymore of the page. Can someone help me with figuring out what to put in here to keep Netscape from processing the rest of my page after it resets? The main function is VerifyData. The other two are used by VerifyData.
Thanks,
Rick
function VerifyData(frmRank)
{
if (document.frmRank.rank1.value > document.frmRank.rank2.value)
{
alert (“The first ranking number must be less than or equal to the “
+”second ranking number – please reenter”);
cursorRank()
return (false);
}
if (document.frmRank.rank1.value > 30)
{
alert (“The first ranking number must be less than or equal to 30.”);
cursorRank()
return (false);
}
if (document.frmRank.rank2.value > 30)
{
alert (“The second ranking number must be less than or equal to 30.”);
cursorRank()
return (false);
}
return true
}
function cursorRank()
{
CtrlUser = document.frmRank.rank1
reset();
CtrlUser.focus();
}
function reset()
{
frmRank.rank1.value = “1”;
frmRank.rank2.value = “4”;
}