The difference between the name and id of the a tag's target pointing to the iframe

The difference between the name and id of the a tag's target pointing to the iframe

Copy code
The code is as follows:

<iframe id="myFrameId" name="myFrameName" scrolling="no" frameborder="0" style="width:200px; height:150px; "></iframe>
<a href="../ashx/Print2DCodeImage.ashx?codeInfo=Demo123" target="myFrameName" >Print QR code</a>

The target of the a tag above points to the iframe named myFrameName. It is not appropriate to use Id as the target. If target="myFrameId", it is only supported by the new version of Chrome and Opera, and it does not work in IE10 and FF.

A small detail that took a lot of time.

<<:  Why do code standards require SQL statements not to have too many joins?

>>:  Basic principles for compiling a website homepage

Recommend

Detailed explanation of the pitfalls of Apache domain name configuration

I have never used apache. After I started working...

MySQL transaction, isolation level and lock usage example analysis

This article uses examples to describe MySQL tran...

Three ways to forward linux ssh port

ssh is one of the two command line tools I use mo...

Django uses pillow to simply set up verification code function (python)

1. Import the module and define a validation stat...

Vue scaffolding learning project creation method

1. What is scaffolding? 1. Vue CLI Vue CLI is a c...

Introduction to JWT Verification Using Nginx and Lua

Table of contents Preface Lua Script nignx.conf c...

Vue Element-ui implements tree control node adding icon detailed explanation

Table of contents 1. Rendering 2. Bind data and a...

vue element el-transfer adds drag function

The Core Asset Management Project requires el-tra...

Discuss the application of mixin in Vue

Mixins provide a very flexible way to distribute ...

Realizing tree-shaped secondary tables based on angular

First look at the effect: Code: 1.html <div cl...

Introduction and examples of hidden fields in HTML

Basic syntax: <input type="hidden" na...

Reasons why MySQL cancelled Query Cache

MySQL previously had a query cache, Query Cache. ...

MySql implements page query function

First of all, we need to make it clear why we use...