I want two different includes to be run based on JS's browser recognition. I want to use this:
<SCRIPT language="JavaScript">
<!--
var browserName=navigator.appName;
if (browserName=="Netscape")
{
println("<?php include_ONCE(text1.inc)?>");
}
else
{
if (browserName=="Microsoft Internet Explorer")
{
println("<?php include_ONCE(text2.inc)?>");
}
}
//-->
</SCRIPT>
Feedback?