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

Implementation of CSS child element selection parent element

Usually a CSS selector selects from top to bottom...

Detailed explanation of the new array methods in JavaScript es6

Table of contents 1. forEach() 2. arr.filter() 3....

Tutorial diagram of installing CentOS and Qt in Vmware virtual machine

Vmware Installation Installing Packages Download ...

How to use axios to filter multiple repeated requests in a project

Table of contents 1. Introduction: In this case, ...

Guide to Efficient Use of MySQL Indexes

Preface I believe most people have used MySQL and...

Json advantages and disadvantages and usage introduction

Table of contents 1. What is JSON 1.1 Array liter...

MySQL horizontal and vertical table conversion operation implementation method

This article uses examples to illustrate how to i...

HTML drawing user registration page

This article shares the specific implementation c...

JavaScript operation elements teach you how to change the page content style

Table of contents 1. Operation elements 1.1. Chan...

How to configure VMware multi-node environment

This tutorial uses CentOS 7 64-bit. Allocate 2GB ...

MySQL json format data query operation

The default table name is base_data and the json ...

Util module in node.js tutorial example detailed explanation

Table of contents Starting from type judgment Str...

JavaScript realizes the queue structure process

Table of contents 1. Understanding Queues 2. Enca...