What are the potential drawbacks of using JavaScript for opening pop-up windows in PHP?

Using JavaScript for opening pop-up windows in PHP can lead to potential drawbacks such as decreased accessibility for users who have JavaScript disabled or use assistive technologies. To solve this issue, you can create a fallback method using PHP to open the pop-up window when JavaScript is disabled.

<?php
echo '<a href="popup.php" target="_blank" onclick="window.open(this.href); return false;">Open Popup</a>';
?>