a bit of a 'hacker' with javascript but can any one tell me why this
code throws up "'exit' is undefined" and how to sort.
the code does what I want it to, but hate errors I can't explain.
TIA
R.
code is:
<script language="JavaS cript">
//thanks to my mate geoff Taggart for this piece of code and style to round
//corners a la explorer 5.5
if (navigator.appN ame == 'Microsoft Internet Explorer' &&
parseInt(naviga tor.appVersion) >= 4){
document.write( '<fieldset>');
exit;
}
else{
document.write( '<fieldset class="moz_rad" >');
exit;
}
</script>
code throws up "'exit' is undefined" and how to sort.
the code does what I want it to, but hate errors I can't explain.
TIA
R.
code is:
<script language="JavaS cript">
//thanks to my mate geoff Taggart for this piece of code and style to round
//corners a la explorer 5.5
if (navigator.appN ame == 'Microsoft Internet Explorer' &&
parseInt(naviga tor.appVersion) >= 4){
document.write( '<fieldset>');
exit;
}
else{
document.write( '<fieldset class="moz_rad" >');
exit;
}
</script>
Comment