RE: Link/Status Bar Question

by "Charlton, Mark" <Mark.Charlton(at)sgcna.com>

 Date:  Wed, 15 Nov 2000 13:10:16 -0500
 To:  "'ltitus(at)mindspring.com'" <ltitus(at)mindspring.com>
 Cc:  hwg-techniques(at)hwg.org
  todo: View Thread, Original
Hi

TAG:

<a href="javascript:setStatus('Techie Description 2');"
onMouseOver="setStatus('Techie Description 2');return true"
onMouseOut="setStatus('Some Blank Message');return true">Techie Term 2</a>

In HEAD 

<script language=javascript type=text/javascript>
<!-- //Set Status
function setStatus(strString) {
	window.status=strString;
}
// -->
</script>

This should work

Mark


> 
> I got the following code from the HWG Techniques Archives while doing
> research:
> 
> <a onMouseOver="status='Blah'; return true;" href="foo.html">Link</a>
> 
> Is there a way to do this so that if a person actually clicks 
> on the word
> Link, the link will either not work at all (preferable), or 
> automatically
> bring up the same page that the person is on?  [I'm trying to 
> avoid (1)
> having to type the page's URL behind every href=" and (2) 
> having the page
> reload.]
 

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA

This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.