www.webdeveloper.com
Results 1 to 2 of 2

Thread: Javascript question

Hybrid View

  1. #1
    Join Date
    Nov 2012
    Posts
    1

    Javascript question

    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

  2. #2
    Join Date
    Aug 2008
    Location
    Sweden
    Posts
    227
    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>

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles