Verwenden Sie JS in PHP
<?php
echo '<script type="text/JavaScript">
prompt("GeeksForGeeks");
</script>'
;
?>
Precious Pygmy
<?php
echo '<script type="text/JavaScript">
prompt("GeeksForGeeks");
</script>'
;
?>