What is the code for pop up window and the size of it? Thanks!

I don't think if its possible to generate popups with only PHP. You can use Javascript to achieve this.

you can use this code to open a new window. but not php...
window.open('new-window.php','mywindow','width=550,height=420')

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!

Member Avatar for diafol

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!

Member Avatar for diafol

just use the attribute: target="_blank" in your <a> tag.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.