I trying to load content from another page but there are error shown when i click "get content" button , here the script >>
$(function(){
$('#get_contect').click(function(){
$('#contect').load('page.html #pageContect');
});
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<html>
<header>
<script src="https://code.jquery.com/jquery-1.10.2.js"></script>
</header>
<button type="button" id="get_contect">get contect</button>
<body>
<div id = "contect">
</div>
</body>
<footer>
</footer>
</html>
the error that shown is :
jquery-1.10.2.js:8706 XMLHttpRequest cannot load file:///C:/Users/khaled%20salem/Desktop/New%20folder/page.html. Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https, chrome-extension-resource.