Menu
Given the code below, can I include a function in GetURL.js that has the inline if … else?
I’ve tried both of the following, but neither gets invoked.
setIndex;
setIndex();
[CODE]<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″>
<title>Secret!!!</title>
<script type=”text/javascript” src=”GetURL.js”></script>
<script language=”JavaScript” type=”text/javascript”>
if (location.protocol == ‘file:’)
location.href= “indexmain.html”;
else
location.href=”http://www.standards.com/indexmain.html”;
</script>
</head>