the following doesn't work , why ?
var myWindow=null;
myWindow = window.open(targetUrlVar,"_blank","resizable=yes");
$(myWindow).load(function(){
alert('hello');
});
Though MyWindow is a Window reference, no check is performed to see whether or not it has been fully loaded. i thought $(window).load(...)
would work here for "window " being replaced by "MyWindow".
the following works:
$(myWindow).load(function(){
alert('hello');
});
for targetUrlVar being an internal resource (like a page belonging to my domain) it works..
but as soon as i wanted to used the .load()
or myWindow.onload()
with a targetUrlVar
being an external page (such as www.yahoo.com or www.google.com ), it doesn't work any more...
No alert is displayed..
i need you help... thank you everyone