View Single Post
Old 08-03-2009, 05:20 AM   #1 (permalink)
superthin
The Wanderer
 
superthin's Avatar
 
Join Date: Aug 2008
Posts: 16
Thanks: 7
superthin is on a distinguished road
Default Could I get a href properties with javascript?

Hello Everybody,

I have a link:

Code:
<a href="myotherlink.html" onclick="myfunc();">Link to edit page</a>
I want to when I click "Link to edit page" a javascript function myfunc() will be executive (alert Link to edit page as example"). In other way, I want to get value / properties extract from a a href:

Ex: I want to get myotherlink.html and its GUI / its text "Link to edit page" value with JavaScript.

Could I do that?

Thanks a lot.
__________________
http://khoancatbetong.com - Vietnamese Concrete Technician Forum
superthin is offline  
Reply With Quote