08-03-2009, 05:20 AM
|
#1 (permalink)
|
|
The Wanderer
Join Date: Aug 2008
Posts: 16
Thanks: 7
|
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.
|
|
|
|