Click to See Complete Forum and Search --> : what does "null" mean?


andrew1234
07-01-2003, 03:44 AM
what does "null" mean?

if(popup==null)

Andrew

JHL
07-01-2003, 03:53 AM
it means not valid data.

if(popup==null) is used to determine if a valid data has been assign to popup

andrew1234
07-01-2003, 08:52 AM
Thanks for the help

guys

ANdrew

Charles
07-01-2003, 08:56 AM
<script type="text/javascript">
<!--
alert (window.foo == null)
// -->
</script>

Variables and properties also, in JavaScript, have a value of "null" before you assign anything to them.