Home  >  Article  >  Web Front-end  >  iframe parent-child page value transfer problem_html/css_WEB-ITnose

iframe parent-child page value transfer problem_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:48:041126browse

Parent page A.jsp
b.jsp is the child page
After the b.jsp page is executed, I get a string I need Pass this string to the A.jsp page and display it in the text tag of the parent page. The parent page cannot be refreshed
What needs to be done
Thank you!


Reply to discussion (solution)

Use js to assign value, roughly
parent.document.name.value='ok'
The specific situation needs to be analyzed in detail

Use js to assign the value, roughly
parent.document.name.value='ok'
The specific situation needs to be analyzed in detail


I know it
$(window.parent.$("#content").html(obj.fileName)); //The child page passes the value to the parent page
$(window.parent.content_assignment(obj .fileName)); //The child page calls the parent page method
Thank you
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