Re: Re: Calling a javascript function?
| From: | pong-TC | Date: | Fri, 22 Mar 2002 00:18:45 +0000 |
| Subject: | Re: Re: Calling a javascript function? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-89620@lists.php.net to get a copy of this message | ||
daveisfera@yahoo.com writes:
>I would want to do something like this:
>
><?php
>if (something true)
>{
> somejavafunc();
>}
>?>
>
>I would want to do that. Is there some way of pulling that off? Thanks,
>Dave
YOu can do something like this, embed the following codes in your php file
echo "<script language=Javascript>";
//you can do something here ie
echo "alert(\"Hello World\");";
echo "</script>";
Hope, this would help.
Pong