Home > Web Front-end > HTML Tutorial > The target link of the a tag points to the iframe

The target link of the a tag points to the iframe

高洛峰
Release: 2017-02-28 13:24:41
Original
2178 people have browsed it

This article mainly introduces how the target link of the a tag points to the iframe. Remember not to use the Id as the target but the name. Friends in need can refer to it

<iframe id="myFrameId" name="myFrameName" scrolling="no" frameborder="0" style="width:200px; height:150px; "></iframe> 
<a href="../ashx/Print2DCodeImage.ashx?codeInfo=Demo123" target="myFrameName" >打印二维码</a>
Copy after login


The target of the a tag above points to the iframe named myFrameName, instead of using Id as the target. If target="myFrameId" is only supported by the new version of Chrome and opera, it will not take effect in IE10 and FF.


For more a tag target links pointing to iframe related articles, please pay attention to the PHP Chinese website!


Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template