Im trying to popup an information window in a specific interval. Its working fine when executing alone
var w = window.open('', "", "width=600, height=400, scrollbars=yes");
//alert(ICJX_JXPath);
var html = "<h3>Hi</h3>";
$(w.document.body).html(html);
But if I execute the same in a timer function it triggers an error something like document is null
var myInterval = setInterval(function () {
var w = window.open('', "", "width=600, height=400, scrollbars=yes");
//alert(ICJX_JXPath);
var html = "<h3>Hi</h3>";
$(w.document.body).html(html);
},10000);
Whats wrong with my timer code