Get notified when a new post is published.
if (typeof (myVar) != "undefined" && myVar != null) {
alert('myVar is defined');
}
Tags: JavaScript
JavaScript