'k Ben een complete n00b op dit gebied, maar onderstaand stukje heb ik bij elkaar geraapt en in elkaar geflanst, maar hij geeft een error. 'k Snap niet waar de error vandaan komt, omdat ik volgens mij (maar ja, ik denk zoveel...) alles juist gedefinieerd heb.
Anyone
Wat doe ik fout...
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
| <HTML>
<HEAD>
<TITLE></TITLE>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function goForit() {
var location;
var user;
var password;
password=this.document.testform.password.value
user=this.document.testform.user.value
location="23049823409" + user + "asdkljh" + password + ".shtml"
fetch(location)
theKeeper=window.close()
}
function fetch(location) {
var root;
if (opener.closed) {
root=window.open('','Chidero','toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=no');
root.location.href = location;
} else {
opener.location.href = location;
}
}
// End -->
</SCRIPT>
</HEAD>
<BODY>
<FORM NAME="testform" onSubmit="Chidero()">
user<BR>
<INPUT TYPE="text" NAME="user" VALUE="" size=20><BR>
password<BR>
<INPUT TYPE="password" NAME="password" VALUE="" size=20><BR>
<INPUT TYPE="button" NAME="button" Value="GO!" onClick="goForit(this.form)">
</FORM>
</BODY>
</HTML> |
Anyone