Answers for "js query common header and footer for all html pages"

0

js query common header and footer for all html pages

<html>
<head>
<title></title>
//include jquery file
<script src="https://code.jquery.com/jquery-1.10.2.js"></script>
<script> 
$(function(){
  $("#header").load("headerfile.html"); 
  $("#footer").load("footerfile.html"); 
});
</script> 
</head>
<body>
<div id="header"></div>
<h1>Include Header-Footer File</h1>
<p>Body Part.....</p>
Something code....
</br></br>
<div id="footer"></div>
</body>
</html>
Posted by: Guest on October-09-2021

Code answers related to "js query common header and footer for all html pages"

Code answers related to "Javascript"

Browse Popular Code Answers by Language