Replace HTML link with Javascript link -
i alter url link of 1 of buttons in navbar of site javascript link.
the next have now:
`<a href='http://www.oldlink.com' rel='nofollow' class='deals' target='_blank'> </a>` i replace http://www.oldlink.com with:
<script>this snippet new link</script> can please show me how this?
if want run javascript when user clicks on link, do:
<a href="javascript:void(0)" onclick="some_javascript_function();" ...> <script> function some_javascript_function() { // want } </script> javascript html hyperlink
No comments:
Post a Comment