Test if a variable existsTag(s): Language
var foo = "bar"; if ( typeof( window[ 'foo' ] ) != "undefined" ) { document.write("foo is defined") } else { document.write("foo is undefined") }
And for fubar :
mail_outline
Send comment, question or suggestion to howto@rgagnon.com
Send comment, question or suggestion to howto@rgagnon.com