How can I prevent the browser from interpreting the html that follows a Javascript function if a certain condition applies?
<script language='JavaScript'>
<!--
function cookiesEnabled() {
if (! document.cookie()) {
document.write("some message"
<!-- something to stop all that follows from executing -->
}
cookiesEnabled();
}
-->
</script>
<!-- HTML or PHP code here -->
<script language='JavaScript'>
<!--
function cookiesEnabled() {
if (! document.cookie()) {
document.write("some message"
<!-- something to stop all that follows from executing -->
}
cookiesEnabled();
}
-->
</script>
<!-- HTML or PHP code here -->