javascript include php

Here’s a quick tutorial on how to include or add javascript code in your php code:

<html>
<body>
<?php>
<script language="javascript" type="text/javascript">
<!--
function alert()
{
alert("I'm an alert box made from a javascript function.");
}
//-->
</script>
?>
</body>
<html>

Remember to make your tags in lower case to validate with W3C Strict.

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Share

You must be logged in to post a comment.