Does anyone know of a method of putting the Status Bar address into a variable? I would like to use the "onMouseOver" in a HRef link to capture the impending address that the status bar shows.
Thanx
Printable View
Does anyone know of a method of putting the Status Bar address into a variable? I would like to use the "onMouseOver" in a HRef link to capture the impending address that the status bar shows.
Thanx
A very basic example:
Code:<script type="text/javascript">function showHref(aElement){
var url = aElement.href;
alert(url);
}
</script>
<a href="http://www.google.com/" onmouseover="showHref(this)">Hover here to alert the url</a>