H
highway of diamonds
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="JavaScript">
//thanks to my mate geoff Taggart for this piece of code and style to round
//corners a la explorer 5.5
if (navigator.appName == 'Microsoft Internet Explorer' &&
parseInt(navigator.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="JavaScript">
//thanks to my mate geoff Taggart for this piece of code and style to round
//corners a la explorer 5.5
if (navigator.appName == 'Microsoft Internet Explorer' &&
parseInt(navigator.appVersion) >= 4){
document.write('<fieldset>');
exit;
}
else{
document.write('<fieldset class="moz_rad">');
exit;
}
</script>