2017-03-05 127 views

回答

0
<p id="demo"></p> <!-- title tag that needs replaced --> 

<script language="JavaScript"> 
<!-- 
function urlCheck() { 
if(
window.location.href=="YOUR URL LOCATION HERE " 
) 
{ 
document.getElementsById('demo').innerHTML = "This is what I wanted !!" 
}else{ 
document.write('<div>testing my super loaded div code sample</div>') 
} 
} 
urlCheck() /* autoLoadFunction */ 
//--> 
</script>