Home >Web Front-end >JS Tutorial >How to display the title of the page within the frame in the title bar_Basic knowledge

How to display the title of the page within the frame in the title bar_Basic knowledge

WBOY
WBOYOriginal
2016-05-16 19:19:361224browse

As title.
The title you want to display in the title bar of the current page is the title of the page within the frame of the current page. How to do this?

For example, page A is:



< ;IFRAME width=100% height=100% frameborder=0 SCROLLING=no SRC='Page B'>


If you want How to display the title of page B between and of page A?

Copy code The code is as follows:

top.document.title = document.title;
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