Home >Web Front-end >JS Tutorial >javascript script to implement the value of the parent window referencing the pop-up window_javascript skills

javascript script to implement the value of the parent window referencing the pop-up window_javascript skills

WBOY
WBOYOriginal
2016-05-16 19:10:37952browse

Maybe you will understand if you look at the function written in this pop-up window:

Copy the code The code is as follows:

function goIt(obj_id,obj_name)
{
window.opener.document.forms["myForm"].elements["form_plant_shu"].value = obj_name;
window.opener.document. forms["myForm"].elements["form_plant_shu"].style.background = "white";
window.close();
return false;
}
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn