把self改称this
function insertface(url,urlid){
self.opener.form.Userface.value=urlid;==>this.opener.form.Userface.value
self.opener.document.tus.value=url;==>this.opener.document.tus.value=url
window.close();
}
function insertface(url,urlid){
self.opener.form.Userface.value=urlid;==>this.opener.form.Userface.value
self.opener.document.tus.value=url;==>this.opener.document.tus.value=url
window.close();
}
function f1()
{
window.open("index.htm");
}
</script>
<input name="tus" type="text" class="shuruk02" ID=Text1>
<input type=hidden name=Userface value="" ID=Hidden1>
<input type=button onclick=f1()>////index.htm
<script>
function insertface(url,urlid){
this.opener.document.all.Text1.value=urlid;
this.opener.document.all.Hidden1.value=url;
window.close();
}
</script>
<input type=button value=ooo onclick=insertface('ss','1')>
我查了dhtml手册
self是对本窗口或者框架的引用self Property Internet Development Index --------------------------------------------------------------------------------Retrieves a reference to the current window or frame. SyntaxHTML N/A
Scripting [ oSelf = ] object.self Possible ValuesoSelf Object that receives the current window or frame. The property is read-only. The property has no default value.ResYou can use the property to explicitly refer to the current window or frame. To improve scripting efficiency, you also can use it to make implicit window references explicit.Standards InformationThere is no public standard that applies to this property. Applies To[ Object Name ]
Platform Version
Win16:
Win32:
Windows CE:
Unix:
Mac:
Version data is listed when the mouse hovers over a link, or the link has focus.
FRAME, window
Move the mouse pointer over an element in the Applies To list to display availability information for the listed platforms.