Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html><head><title>histnick</title>
- <meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
- <script type="text/javascript" language="JavaScript">
- function checkempty(event)
- {
- if (document.formHist.user.value == '')
- {
- document.formHist.user.focus();
- alert('user empty');
- return false;
- }
- if (document.formHist.password.value == '')
- {
- document.formHist.password.focus();
- alert('pass empty');
- return false;
- }
- if (document.formHist.nick.value == '')
- {
- document.formHist.nick.focus();
- alert('empty nick');
- return false;
- }
- return true;
- }
- function doOnLoad()
- {
- document.formHist.nick.focus();
- }
- function filteredClick()
- {
- if (!checkempty())
- return;
- d=document;
- f=d.createElement("form");
- f.setAttribute("method","post");
- f.setAttribute("action","histnickflt");
- f.setAttribute("onSubmit","return checkempty(event);");
- h1=d.createElement("input");
- h1.setAttribute("type","hidden");
- h1.setAttribute("name","user");
- h1.setAttribute("value",document.formHist.user.value);
- h2=d.createElement("input");
- h2.setAttribute("type","hidden");
- h2.setAttribute("name","password");
- h2.setAttribute("value",document.formHist.password.value);
- h3=d.createElement("input");
- h3.setAttribute("type","hidden");
- h3.setAttribute("name","nick");
- h3.setAttribute("value",document.formHist.nick.value);
- f.appendChild(h1);
- f.appendChild(h2);
- f.appendChild(h3);
- d.body.appendChild(f);
- f.submit();
- }
- </script>
- </head>
- <body onload="doOnLoad();">
- <font size="3" face="Courier">
- <form method="post" action="histnick" name="formHist" onsubmit="return checkempty(event);">
- user:<input type="text" name="user" size="20" maxlength="20" value=""> <font size="1"><a href="setlng_ru"><font color="lightgray">ru</font></a> <a href="setlng_en"><font color="lightgray">en</font></a></font><br>
- pass:<input type="password" name="password" size="20" maxlength="20" value="">
- <br><hr><br>
- nick:<input type="text" name="nick" size="20" maxlength="20" value="">
- <input type="submit" value="go!"> <font size="2"><a href="javascript:filteredClick()"><font color="#aaaaaa">flt</font></a>
- </font></form>
- </font></body></html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement