{article Content Table}{title} {text}{/article}

{source}


<!-- You can place html anywhere within the source tags -->
<pre class="brush:py;">


&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;<br>
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; xml:lang=&quot;en&quot; lang=&quot;en&quot;&gt;<br>
&lt;head&gt;<br>
&lt;title&gt;First Javascript&lt;/title&gt;<br>
&lt;script language=&quot;javascript&quot; type=&quot;text/javascript&quot;&gt;<br>
function helloheadelement()<br>
{<br>
document.write(&quot;&lt;strong&gt;helloheadelement()&lt;/strong&gt;&lt;br/&gt;&quot;);<br>
document.write(&quot;Hello!! from function in head element! &lt;strong&gt;sayheadelement()&lt;/strong&gt;&lt;br/&gt;&quot;);<br>
}<br>
function byeheadelement()<br>
{<br>
document.write(&quot;&lt;strong&gt;byeheadelement()&lt;/strong&gt;&lt;br/ &gt;&quot;);<br>
document.write(&quot;Bye!! from function in head element! &lt;strong&gt;byeheadelement()!&lt;/strong&gt;&quot;);<br>
}<br>
&lt;/script&gt;<br>
&lt;/head&gt;<br>
&lt;body&gt;<br>
&lt;script language=&quot;javascript&quot; type=&quot;text/javascript&quot;&gt;<br>
//Output to the browser<br>
document.write(&quot;&lt;strong&gt;Output to the browser&lt;/strong&gt;&lt;br&gt;&quot;); <br>
document.write(&quot;&lt;strong&gt;Hello World. (document.write in body element)&lt;/strong&gt;&quot;);<br>
document.write(&quot;&lt;br/&gt;Hello World Javascript program! (document.write in body element). &lt;br/ &gt;&quot;);<br>
document.write(&quot;&lt;br&gt;The head usually contains functions. Call function fron script in head element. &lt;br&gt;&quot;);<br>
helloheadelement();<br>
byeheadelement();<br>
&lt;/script&gt;<br>
&lt;/body&gt;<br>
&lt;/html&gt;<br>




</pre>


<script language="javascript" type="text/javascript">
    // You can place JavaScript like this

</script>
<?php
    // You can place PHP like this

?>
{/source}

Output to the browser

Output to the browser
Hello World. (document.write in body element)
Hello World Javascript program! (document.write in body element).

The head usually contains functions. Call function fron script in head element.
helloheadelement()
Hello!! from function in head element! helloheadelement()
byeheadelement()
Bye!! from function in head element! byeheadelement()!