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
In the past few days, the website has been access...
Implementation ideas: First of all, the alarm inf...
Copy code The code is as follows: <pre> <...
1. Introduction to Compose Compose is a tool for ...
This article example shares the specific code of ...
The previous articles introduced how to debug loc...
Preface: I received crazy slow query and request ...
VC6.0 is indeed too old VC6.0 is a development to...
Database stored procedures DROP PROCEDURE IF EXIS...
The requirement is to pass in the rating data for...
Copy code The code is as follows: <!DOCTYPE HT...
The syntax for an outer join is as follows: SELEC...
When using Dreamweaver or FrontPage to create HTM...
Yesterday, I helped someone install a system and ...