haracath
Sep 25 2009, 01:12 PM
I viewed some websites. Evrytime click a hyperlink for a new page. This new page's not a page with its size equal the screen size, It's only a small square on the left corner of screen!
Who can show me how can i create a square small page such as?
Thanks!
Straystudio
Sep 25 2009, 08:54 PM
Search on web for: JavaScript pop-up
window.open("url", "name", "width=380, height=220");
You can size pop-ups in pixel only, not % percentuage. It is possible though, to work out percentuage-equivalent value in pixel, by calculation.
Stay at fixed pixels, at the moment.
Same with left=0, top=100 to arrange pop-up position on the screen.
And do not forget, nothing is more evil than a pop-up, for beginners !
So, be patient and come back here, from time to time ...
Play this button in some BODY:
<input type="button" onclick='window.open("http://www.zymic.com/forum/", "mySample", "left=250, width=380, height=220, scrollbars=yes");'>