if(document.getElementById)
{//do something
}
Does it mean that whenever document.getElementById is used at anytime it will do the if statement?
Posted 10 March 2012 - 07:03 AM
if(document.getElementById)
{//do something
}
Posted 10 March 2012 - 07:43 AM
Posted 13 March 2012 - 11:15 AM
var x=1;
var y=0;
if (x) {alert ('foo')];
if (y) {alert ('bar')};
will alert "foo" but not "bar", because javascript will cast the 1 to true and the 0 to false.
|
|
Query failed: connection to localhost:3312 failed (errno=111, msg=Connection refused).
|
