What is the code for pop up window and the size of it? Thanks!
you can use this code to open a new window. but not php...
If the link is <a href=\"modules.php?name=News&file=article&sid=$sid&page=$next_pagenumber ... > </a> Name
how to make the pop up window after the click? Thanks!
You can make the browser window a certain size via JS as mentioned. php can't do this, as it's done before the browser gets it. ditty has it.
Depending on the content, you could always use a "faux-window", by using jQuery dialog or similar.
Please ignore the size of window, I just want to have pop up window by the above mentioned link!
just use the attribute: target="_blank" in your <a> tag.
<a href="http://www.java2s.com" onClick='window.open('new-window.php','mywindow','width=550,height=420')'>www.java2s.com</a>