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>
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!