The iframe refresh method is more convenient

The iframe refresh method is more convenient
How to refresh iframe

1. To refresh, you can use javascript's document.fr.location.reload()

2. You can also modify document.fr.location.href to achieve the refresh function

For example:

Copy code
The code is as follows:

<iframe name="fr" width="96%" src="alert_search.do?method=findSys"></iframe>
<script type="text/javascript">
function show_syslog(id){
document.fr.location.href="/alert_search.do?method=findSys&id="+id;
}
</script>
<input type="button" onclick="javascript:show_syslog(1)">

Note: Do not use both methods at the same time. If you use them at the same time, they will be submitted twice.

Copy code
The code is as follows:

document.fr.location.href = "your.html";
document.fr.location.reload();

<<:  Detailed explanation on how to modify the default port of nginx

>>:  Example code of how to implement pivot table in MySQL/MariaDB

Recommend

Vue implements picture verification code when logging in

This article example shares the specific code of ...

How to view the database installation path in MySQL

We can view the installation path of mysql throug...

Notes on MySQL case sensitivity

Table of contents MySQL case sensitivity is contr...

Native JS realizes the special effect of spreading love by mouse sliding

This article shares with you a js special effect ...

Set IE8 to use IE7 style code

<meta http-equiv="x-ua-compatible" co...

VMware15.5 installation Ubuntu20.04 graphic tutorial

1. Preparation before installation 1. Download th...

How to implement remote connection for Redis under Linux

After installing Redis on Linux, use Java to conn...

Detailed tutorial on compiling and installing MySQL 5.7.24 on CentOS7

Table of contents Install Dependencies Install bo...

What is this in JavaScript point by point series

Understand this Perhaps you have seen this in oth...

How to use wangEditor in vue and how to get focus by echoing data

Rich text editors are often used when doing backg...

How to develop uniapp using vscode

Because I have always used vscode to develop fron...

Distinguishing between Linux hard links and soft links

In Linux, there are two types of file connections...

Chinese website user experience rankings

<br />User experience is increasingly valued...

Detailed Introduction to MySQL Innodb Index Mechanism

1. What is an index? An index is a data structure...