Hi, i need to open multiple windows(4) These windows must open with click on one button and fit in screen of viewer(640x480,800x600,1024x768...) i know one way to do this, but it's so long(70 lines), i wanna learn best way to do it. Help me! Thanks!
That doesn't sound like it should take 70 lines of code to me - unless you're not sure up front how many windows you need total. You originally said four windows, but now I see you've added the "or more". That may be a complication and the code for this approach might easily swell to 70 lines.
Is it important that the user be able to move these windows around independently? If it isn't, you may do better with iframes, or a regular frameset, or even 4 divs with overflow set to scroll.