2017-03-05 59 views
1

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時在導航欄上顯示真實網址?如何在使用<a href="#" onclick="funtion('test.php')">

<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>

回答