samedi 25 avril 2015

js How to add href + text onclick


I need to pass (using javascript) text inside span to href

<div class='tableCell'><span>information</span></div>
<div class='tableCell'><span>contact</span></div>
<div class='tableCell'><span>about</span></div>  

for example when i click to about link must be http://ift.tt/1HCXqrw


Aucun commentaire:

Enregistrer un commentaire