[SOLVED] Calling a Java script?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
lazersam
Forum Contributor
Posts: 105
Joined: Sat Nov 15, 2003 4:07 am
Location: Hertfordshire, UK

Calling a Java script?

Post by lazersam »

Anyone know how my PHP script can call a java script?

I want to call a pop up window using java from a php script. I have the code for the pop-up window but I do not know how to call it.

Please help.

Larry.
User avatar
anjanesh
DevNet Resident
Posts: 1679
Joined: Sat Dec 06, 2003 9:52 pm
Location: Mumbai, India

Post by anjanesh »

Code: Select all

<?php print('<SCRIPT LANGUAGE=Javascript>CallPopUpFunction();</SCRIPT>'); ?>
User avatar
lazersam
Forum Contributor
Posts: 105
Joined: Sat Nov 15, 2003 4:07 am
Location: Hertfordshire, UK

Post by lazersam »

of course, thanks!

Larry
Post Reply