PDA

View Full Version : can you set a popup height to auto?



elliot
09-12-2005, 09:08 PM
Hi guys,

I'd like to know if you can set a pop up window's height to automatically be the height of the content?

the code I have is....

function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=yes,width=450,height=500');");
}

I've included this into my page for 5 popups that will have different amounts of copy..


here's the page. The popups are linked to the "Regional Descriptions" in the LH col...

http://www.newworlds.co.uk/update/bolivia.html

thanks,
Elliot