m.port1.onmessage = function (e) { alert(e.data); }
// In your case instead of "variable" you will of course use "e" if (typeof variable === 'undefined') { // variable is undefined }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)