You are here: irt.org | FAQ | JavaScript | General | Q1753 [ previous next ]
Simply test if the window object has a property by the same name:
<script language="JavaScript"><!-- if (window.myVariableName) { alert('variable exists'); } else { alert('either variable exits or its value is null or false'); } //--></script>