1. Application Scenarios Parent page a.jsp Subpage b.jsp, as the page pointed to by the iframe embedded in page a Copy code The code is as follows:<body> <iframe id="frame" src="b.jsp" .../> </body> Now an operation is performed in page b. After the operation is completed, the iframe embedded in page a needs to be refreshed. 2. Ideas Find page a in page b, then find the iframe in page a, and reassign the src attribute of the iframe. 3. Implementation In b.jsp Copy code The code is as follows:function refresh(){ var frame = window.parent.document.getElementById("frame"); var path = frame.getAttribute("src"); frame.setAttribute("src", path); } This only refreshes the frame, achieving a partial refresh effect. |
<<: How to pass parameters to JS via CSS
>>: Typical cases of MySQL index failure
Table of contents 1. What is lazy loading of rout...
1. As mentioned above I saw this macro when I was...
query_cache_limit query_cache_limit specifies the...
1 Introduction Kong is not a simple product. The ...
Problem [root@zh ~]# [root@zh ~]# [root@zh ~]# yu...
When the scale of Docker deployment becomes large...
This article shares the specific code for the WeC...
1.1 Copy the nginx installation package and insta...
Using UNION Most SQL queries consist of a single ...
This article example shares the specific code of ...
This article example shares the specific code of ...
Docker is a very popular container technology. Th...
Table of contents 1. Database design 2. Front-end...
If you upgrade in a formal environment, please ba...
1. Data backup 1. Use mysqldump command to back u...