temp.htm
662 Bytes
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
43
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
</HEAD>
<BODY>
</BODY>
</HTML>
<SCRIPT LANGUAGE="JavaScript">
<!--
function p(i){
this.side=i;
}
p.prototype.geti=function(){
alert(this.side)
}
function pChild(j,k){
p.call(this,3);
this.j=j;
this.k=k;
}
pChild.prototype=new p();
pChild.prototype.getj=function(){
alert(this.j)
}
var p1=new p(1);
p1.geti();
var p2=new pChild(2,3);
p2.getj();
//-->
</SCRIPT>