Click to See Complete Forum and Search --> : Problem...


piano1234
11-08-2003, 03:25 AM
I have:

<a href="#" onClick="MyWindow=window.open('01.html', 'MyWindow', 'toolbar=0, location=0, directories=0, status=0, menubar=0, scrollbars=0, resizable=0, width=750 , height=500 ' ); return false;">



AND

<a href="#" onClick="MyWindow=window.open('02.html', 'MyWindow', 'toolbar=0, location=0, directories=0, status=0, menubar=0, scrollbars=0, resizable=0, width=500 , height=300' ); return false;">

_______________
When I pressed first button, new window is opened, and dimensions was 750x500. I did not close first window,
then I pressed second button but dimensions was the same.

I want when second button is pressed to chance dim of window to its regular. Is it possible?

Khalid Ali
11-08-2003, 06:02 AM
if you changed the name of the window that will open the new window in its independent window with the size set for it,

or

if you close the first window then you can open the second in its correct dimension

or

in the second window buttons on click event,before the return false statement add the following so that it woill look like this

MyWindow.resizeTo(500,300); return false;