Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.

add_to_head

This function adds custom code inside the <head> and </head> before the output is displayed.

add_to_head

Quote

add_to_head ( string $tag )


Example CSS
Code
<?php
add_to_head("<link rel='stylesheet' href='styles.css' type='text/css' media='Screen' />");
?>


Example JavaScript
Code
<?php
add_to_head("<script type='text/javascript' src='myscript.js'></script>");
?>



Changelog
7.00.00 - Function added to PHPFusion