Best way to incorporate javascript in php?

Posted by user300371 on Stack Overflow See other posts from Stack Overflow or by user300371
Published on 2010-03-25T19:00:27Z Indexed on 2010/03/25 19:03 UTC
Read the original article Hit count: 111

Filed under:
|

This is the way I am currently doing it.

\n"; echo "alert('Congrats');\n"; echo "";

?>

Is there a better way than just to echo it?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about php