Undefined Variable?

[Total: 0    Average: 0/5]

This shows how to determine if a variable is not yet defined.

Body Code:

<script>
if (typeof abc == "undefined") document.write("abc<BR>");
abc = true;
if (typeof abc == "undefined") document.write("abc<BR>");
abc = true;
</script>

Times Viewed: 0

Leave a Reply

Your email address will not be published. Required fields are marked *