Actually it’s very simple, but it confused me yesterday. I have a php page named picture-list.php. This page shows many small picture (thumbnails). When visitor click on that small picture, a popup window will show up showing the full size of that picture. I have a second php page named show-full-picture.php that will load the full size picture. Well.. I’ll simply put <a href> tag to link to the second php page that will load the full size picture. But I am not feeling enough, the popup window contain menubar, scrollbar, toolbars and so on and I don’t like it.

After googling for a while … thanks God I got the answer and to my surprise it’ very simple. Use the following javascript :

window.open(’show-full-picture.php?id=xxx’, “PageName”, displaysetting);

while displaysetting is something like “width=330,height=330,left=100, top=25″