how can i access the text of an <a> tag with javascript?? say something like this:
i don't know what i need to write instead of "text"!Code:<script> function myFunction(){ alert(document.links[0].text) } </script> <a href="http://address">this is the text i want myFunction to display</a> <form> <input type="button" onclick="myFunction()"> </form>
please help me!!






Reply With Quote