Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Java script

Status
Not open for further replies.

bassmn

Technical User
Oct 27, 2002
8
0
0
US
I am putting together an e-commerce site. I'm looking for a script that will ensure the link to back my site isnt removed.
The absence of this text would cause the browser window to close.Does anyone know of such a script?
Thanks,
 
<script>
function load(){
if(document.body.innerHTML.indexOf(&quot;http:&quot; + &quot;// window.location.replace(&quot;wrongurl that does not exsist.html&quot;);
}
}
</script>
<body onload=&quot;load();&quot;>
<a href=&quot;This will not be visible if you change the It does not check if there is a href to that site it just checks if the url to the site is anywhere in the body
of the page.
</a>
 
Thanks, that worked out just fine.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top