window.opener.editForm(Result).focus(); function CopyPath(FilePath,FileSize){var str=location.toString()var Result=((((str.split('?'))[1]).split('='))[1]);window.opener.editForm(Result).focus(); window.opener.document.editForm(Result).value=FilePath;

来源:学生作业帮助网 编辑:作业帮 时间:2024/04/29 12:40:53

window.opener.editForm(Result).focus(); function CopyPath(FilePath,FileSize){var str=location.toString()var Result=((((str.split('?'))[1]).split('='))[1]);window.opener.editForm(Result).focus(); window.opener.document.editForm(Result).value=FilePath;
window.opener.editForm(Result).focus();
function CopyPath(FilePath,FileSize)
{
var str=location.toString()
var Result=((((str.split('?'))[1]).split('='))[1]);
window.opener.editForm(Result).focus();
window.opener.document.editForm(Result).value=FilePath;
if (Result == "FileUrl")
{
window.opener.document.editForm.FileSize.value=FileSize;
}
window.opener=null;
window.close();
}
这个函数中的window.opener.editForm(Result).focus();什么意思?
点击按钮触发这个函数时没反应,可以进入函数,到window.opener.editForm(Result).focus();这儿就停了~

window.opener.editForm(Result).focus(); function CopyPath(FilePath,FileSize){var str=location.toString()var Result=((((str.split('?'))[1]).split('='))[1]);window.opener.editForm(Result).focus(); window.opener.document.editForm(Result).value=FilePath;
window窗户
opener开启者