Home >Web Front-end >HTML Tutorial >Get the tag attribute of iframe_html/css_WEB-ITnose

Get the tag attribute of iframe_html/css_WEB-ITnose

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-24 11:52:161023browse

If the src of an iframe is an a.jsp, I now want to obtain the attributes of the iframe, such as width, height, etc., in this a.jsp. Please tell me how to write this.


Reply to discussion (solution)

$(window).width()
$(window).height()

I found the method myself window.frameElement.height

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