Thanks for answers.
Pierre.
One way would be to redirect the user to different pages if he has or not
javascript:
<html>
<head>
<meta name="Refresh" content="4; URL=no_javascript.cfm" />
</head>
<body onload="window.location.href='with_javascript.cfm';">
</body>
</html>
--
<mack />
<cftry>
<body onload="return testjs();">
<cfcatch>
code for no javascript
This will not work because cftry is executed on the server side and the
javascript is executed on the client side.
--
<mack />
Login Page
<html>
<BODY onLoad="JSChk>
<SCRIPT LANGUAGE="JavaScript">
function JSChk()
{
document.myform.JSVal.value = "Yes";
}
</SCRIPT>
<FORM Method="Post" Name="myform" Action="Welcome.CFM">
<INPUT TYPE="hidden" NAME="JSVal">
<TABLE ALIGN="center">
<TR>
<TD>NT ID</TD>
<TD><Input Name="strUserName" Type="Text"></TD>
</TR>
<TR>
<TD>Password</TD>
<TD><INPUT TYPE="password" NAME="strUserPassword"></TD>
</TR>
<TR>
</TR>
</Table>
<Div Align="Center">
<BR>
<INPUT TYPE="submit" VALUE="Submit">
</DIV>
<BR>
</FORM>
</body>
</html>
Welcome Page
<html>
<BODY onLoad="JSChk>
<SCRIPT LANGUAGE="JavaScript">
function JSChk()
{
document.WelcomePage.JSVal.value = "Yes";
}
</SCRIPT>
<FORM ACTION="LogPage.cfm" Name="WelcomePage" METHOD="post">
<CFIF Form.JSVal NEQ "Yes">
<CFLOCATION URL="http://www.ms.com/Logs/Logout.cfm?JSVal=No">
</CFIF>
<INPUT TYPE="Hidden" NAME="JSVal">
</FORM>
</BODY>
</HTML>
Logout Page
<html>
<BODY>
<CFIF (IsDefined("URL.JSVal"))>
You're browser does not have Javascript enabled and this is required in order
to access the IS&S Contract Log Pages. Please correct this and click <A
HREF="./adminlogon.cfm">here</A> to return to the login screen.
<CFABORT>
</CFIF>