What are some alternative approaches to opening pop-up windows in PHP scripts that avoid common issues like pop-up blockers?

One alternative approach to opening pop-up windows in PHP scripts that avoids common issues like pop-up blockers is to use JavaScript to trigger the pop-up window. By using JavaScript, the pop-up window can be opened in response to a user action (such as clicking a button) rather than automatically on page load, which is more likely to trigger pop-up blockers.

<button onclick="window.open('popup.php', 'Popup', 'width=400,height=400')">Open Popup Window</button>