Joseph Michael Pesch
VP Programming

JavaScript Check for Undefined Variable (null value)

by 25. August 2010 15:51

if (typeof (myVar) != "undefined" && myVar != null) {

  alert('myVar is defined');

}

Tags:

JavaScript

Comments are closed