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

Summary of MySQL Undo Log and Redo Log

Table of contents Undo Log Undo Log Generation an...

SQL statements in Mysql do not use indexes

MySQL query not using index aggregation As we all...

Installation and configuration method of vue-route routing management

introduce Vue Router is the official routing mana...

How to calculate the value of ken_len in MySQL query plan

The meaning of key_len In MySQL, you can use expl...

Analysis and treatment of scroll bars in both HTML and embedded Flash

We often encounter this situation when doing devel...

js to realize a simple disc clock

This article shares the specific code of js to im...

CSS to achieve scrolling image bar example code

On some websites, you can often see some pictures...

MySQL Quick Data Comparison Techniques

In MySQL operation and maintenance, a R&D col...

MySQL Packet for query is too large problem and solution

Problem description: Error message: Caused by: co...

A brief understanding of MySQL SELECT execution order

The complete syntax of the SELECT statement is: (...

When is it appropriate to use dl, dt, and dd?

dl:Definition list Definition List dt:Definition t...