Implementation principle: When loading index.htm, the script is automatically called every 1 second to refresh the frame page code
Code advantages: Only need to set the script in the index.html frame page , no code needs to be set in the loaded subpage.
index.htm code is as follows: