Home > Article > Web Front-end > Share an offline HTML page application example
I want to make an offline HTML page application with only one main page and several other partial pages.
I want to make the main page a master page like the server side, and load other pages into the main page.
----- index.htm header.htm work.htm
In the case of offline, is there any way to load the header.htm page into the specified dom through JS script or other methods in index.htm?
<html> <body> <div id="header"></div> <script> $('#header').load('./header.htm') // 这个方法不行,因为这是请求远程的页面.而不是请求本地的 </script> </body> </html>
【Related recommendations】
1. Free html online video tutorial
3. php.cn original html5 video tutorial
The above is the detailed content of Share an offline HTML page application example. For more information, please follow other related articles on the PHP Chinese website!