Hi,
Is there anyway to execute Javasript commands with PHP?
Eg <?php
if(some condion) { // Javascript function window.open(param1, param2,...); }
?>
Thanks
Stuart
You can have php output javascript, but you can't have php "execute" it.
Try this ... It should work..
echo "<script>"; if(some condition) { ?> function check() { window.open(param1, param2,...); <? } echo "</script>"; ?>
Chanderjit