i wanted to include common content of my html pages explicitly, using jQuery
but i am not able to do it plz help some one
XMLHttpRequest cannot load file:///C:/Users/dell/Desktop/html/header.html. Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https, chrome-extension-resource. jquery-1.11.2.min.js:4
XMLHttpRequest cannot load file:///C:/Users/dell/Desktop/html/footer.html. Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https, chrome-extension-resource.
i am getting this error in my console
this is my code
<html>
<head>
<title></title>
<script src="jquery-1.11.2.min.js"></script>
<script>
$(function(){
$("#header").load("header.html");
$("#footer").load("footer.html");
});
</script>
</head>
<body>
<div id="header"></div>
<!--Remaining section-->
<div id="footer"></div>
</body>
</html>
please help