|
-
Oct 11th, 2000, 10:04 PM
#1
Thread Starter
Frenzied Member
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
NXSupport - Your one-stop source for computer help
-
Oct 12th, 2000, 04:40 AM
#2
Hyperactive Member
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]
-
Oct 12th, 2000, 03:02 PM
#3
Thread Starter
Frenzied Member
thanks, but I'm looking for a DHTML answer
NXSupport - Your one-stop source for computer help
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|