Copy code The code is as follows:<iframe src="1.htm" name="ifrmname" id="ifrmid"></iframe> Option 1: Use the iframe's name attribute to locate Copy code The code is as follows:<input type="button" name="Button" value="Button" onclick="document.frames('ifrmname').location.reload()"> or <input type="button" name="Button" value="Button" onclick="document.all.ifrmname.document.location.reload()"> Option 2: Use the iframe id attribute to locate Copy code The code is as follows:<input type="button" name="Button" value="Button" onclick="ifrmid.window.location.reload()"> The Ultimate Solution: When the src of the iframe is another website address (cross-domain operation) Copy code The code is as follows:<input type="button" name="Button" value="Button" onclick="window.open(document.all.ifrmname.src,'ifrmname','')"> |
<<: Sample code for implementing 3D rotation effect using pure CSS
>>: Vuex modularization and namespaced example demonstration
The Flexbox layout module aims to provide a more ...
Introduction to sudo authority delegation su swit...
I searched on Baidu. . Some people say to use the...
Effect picture: Implementation code: <template...
In the horizontal direction, you can set the alig...
Definition of Float Sets the element out of the n...
Table of contents Preface Communication between t...
When you send a network request, the following sa...
1. OpenSSL official website Official download add...
Copy code The code is as follows: <html> &l...
Table of contents 1. Write an HTML, the first Vue...
There is a picture in a big box. When you put the...
Why does CSS have a cascading mechanism? Because ...
What is a Viewport Mobile browsers place web page...
Reverse Proxy Reverse proxy refers to receiving t...