tags:

views:

10

answers:

0

Hello!

I have some javascript file that opens new window with an image:

var lastOpenPictureWindow = null;

function showPicture(url) {
    lastOpenPictureWindow = window.open(url, "MISPict", "height=500,width=500");
    $addHandler(lastOpenPictureWindow, "load", correctPictureSize);
    lastOpenPictureWindow.focus();
}

So $addHandler calls correctPictureSize() function where I just resize window. It's works in FF and Chrome but not in IE. Is there some trouble with $addHandler?

related questions