-
how do I make a simple DHTML page that asks you for a username and password (not a pop up window) and then you click OK and depending what the username and password is, it will goto a url
example
if text1.text says "Dimava"
and if text2.text says "blur"
then I want it to goto http://www.aol.com
how do I do that using DHTML
also... when I'm uploading it to my server, what files do I upload, just the HTML file and the dll file, or something else
thanks in advance
dimava
P.S. I never worked with DHTML before
-
I dunno if this will be of any help, but this bit of javascript will direct you to a page with the same name as the password, ie password: CyberSurfer will redirect to CyberSurfer.htm in the same directory as the page holding the script. This could easily be changed, though.
Code:
<script language="JavaScript">
<!--
function loadpage(){
var psj=0;
newwin = window.open(document.frm.pswd.value + ".htm")
//window.location.href=document.frm.pswd.value + ".htm"
}
//-->
</script>
Obviously, the form would need to be called frm, and the password box called pswd, but that can be easily changed as well.
You can also edit it for different page extensions (asp, jsp etc.)
[Edited by CyberSurfer on 10-12-2000 at 05:43 AM]
-
thanks, but I'm looking for a DHTML answer