the following doesn\'t work , why ?
var myWindow=null;
myWindow = window.open(targetUrlVar,\"_blank\",\"resizable=yes\");
$(myWindow).load(function(){
a
I see this question is somewhat old.
However, arthur stated,
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 think that the issue may be due to the targetUrlVar being external; the alert may be blocked to prevent cross-site scripting (aka XSS).