I tried to open the content pages in using a javascript. So, I don't have to write all the header and footer pages. However, there is a problem, the url is not show in the navigation bar. Are there anyway to make the real url show up in the navigation bar? http://www.page.com/test.php을 사용할 때 탐색 모음에서 실제 URL을 표시하는 방법은 무엇입니까?<a href="#" onclick="funtion('test.php')">
https://developer.mozilla.org/en-US/docs/Web/API/History_API#The_pushState()_method
이 예는 :
history.pushState({}, "New page test", "/test.php");
먼저 PARAM가 있습니다
<script>
\t function openLink(url) {
\t \t $(".contentTable").load(url);
\t \t \t
\t }
</script>
<a id="link1" href="#" onclick="openLink('test.php')">Link</a>