logo

AutoLink (javascript)

JavaScript: The Definitive Guide
Author David Nishimoto
davepamn@relia.net
Subject:autolink

Overview: This javascript code triggers when the URL mouse over event fires. The purpose is to redirect to another web page.


<html> <head><title>Auto Link</title> 
<script language="javascript1.1"> 
function auto_link(sURL) { location.href=sURL; } 
</script> 
</head> 
<body> 

<a href="javascript:void(0);" 
onMouseOver="auto_link('http://www.listensoftware.com/hrxp/cmmain.asp?SiteId=6');">Javascript</a> 
</body> 
</html> 
s