<html> <head> <script> function changeLink() { document.getElementById('myAnchor').innerHTML="Blog technique"; document.getElementById('myAnchor').href="http://http://blogtechnique.easywebinterface.info/"; document.getElementById('myAnchor').target="_blank"; } </script> </head> <body> <a id="myAnchor" href="http://www.microsoft.com">Microsoft</a> <input type="button" onclick="changeLink()" value="Change link"> </body> </html>