resizeby in IE7 doesnot work?

Z

zhengyan11

Hey, Guys,

I am working on a pop up window, which should get an image
exactly fit in. And this is part of my JS method:

earchWindow=window.open(img,'searchWindow','toolbar=no,width='+w
+',height='+h);
searchWindow.document.write('<html><head><title>'+imgTitle+'<\/
title><\/head><body background="'+img+'"><\/body><\/html>');
searchWindow.resizeBy(w-searchWindow.document.body.clientWidth,h-
searchWindow.document.body.clientHeight);


but it seems that resizeBy doesnot work in IE7. I got a pop up
window with desire height but a bigger width. Anyone could help me out
of this? I have to work with IE7.


thank you
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,756
Messages
2,569,533
Members
45,007
Latest member
OrderFitnessKetoCapsules

Latest Threads

Top