I am new to HTML. I have an html page called " main.html" and I want to include another html page called " menu.html" in it. My page main.htmldoes not include frames and is intended for use with tags div. My site is hosted on a Linux based server. The site I have to redesign is Java issues .
main.html
menu.html
div
You want to see the server side (SSI). This Apache tutorial should launch you and run if this site is running on Apache.
There are many ways to interact with the server, but all but SSI require a language other than HTML.
If you are using IIS, you can check Microsoft Record Server-Side Includes .
Pay attention to the server side.
. .. jsp : <c:import url="/include/navigation.jsp" />, php <?php include("/sidebar.php");?> . , : , , . ( javascript, ), , Java Questions - .
<c:import url="/include/navigation.jsp" />
<?php include("/sidebar.php");?>
, PHP - . main.html main.php, php-, , :
<?php include('menu.html'); ?>
! , php . . , - Dreamweaver ( ), , .
ajax- javascript, .
JQuery :
<div id="putStuffHere"> </div> <script> $('#putStuffHere').load('myStuff.html'); </script>
Source: https://habr.com/ru/post/1705103/More articles:Вы нашли успех с помощью веб-приложения Spring и Hibernate - javaIt is necessary to set the path (cp) in ant script depending on the value of the property - antMy team member added a link to a third-party DLL and registered ... now I can not build - version-controlSMTP Message Inspection IIS - iisКак получить макросы, определенные в книге Excel - vbaUsing delegates and announcing events - event-handlingTable reel / Eager Spool - optimizationIs there any hard data about the value of control inversion or dependency injection? - dependency-injectionFinding static class attributes in Python - pythonHow to determine if a function is defined in php - phpAll Articles