Login.htm - ICP DAS USA ISaGRAF WinCE ViewPAC User Manual

Table of Contents

Advertisement

5.2

Login.htm

Login.htm is the first welcome page when a user visiting in. It can be modified.
Below is the basic code for the login.htm
<html>
<head>
<title>Login</title>
<meta http-equiv=pragma content=no-cache>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" >
<script language="JavaScript">
var random_val=123;
function get_random_val()
{
var rightNow = new Date();
random_val += 323456789*rightNow.getMinutes() +
107654321*(rightNow.getTime()%1000);
setTimeout("get_random_val()", 197); // repeat call
}
//check if username and possword are empty
function validate(fm)
{
setKey(fm);
return true;
}
//Embed key while submitting
function setKey(fm)
{
var rightNow = new Date();
cookieVal = random_val+rightNow.getTime();
fm.key_.value = cookieVal;
}
</script>
</head>
5-2
ISaGRAF WinCE ViewPAC User Manual , V.1.6 , 1/2017 by ICP DAS
This row is only for the "Login.htm" , please do
not apply to other pages. For example, the
"menu.htm" & "main.htm" & other.htm pages.
Please apply your charset here.
For example,
English: UTF-8
Simplified Chinese: gb2312
Traditional Chinese: big5
or other language

Advertisement

Table of Contents
loading

This manual is also suitable for:

Vp-25w7Vp-23w7Vp-4137Vp-25w6Vp-23w6Vp-4136

Table of Contents