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/12/27 20:35:48
window.opener.editForm(Result).focus();functionCopyPath(FilePath,FileSize){varstr=location.toString(

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开启者