Hacking the <a> tag in 100 characters

Matty90

Newbie
Joined
Nov 10, 2011
Messages
32
Reaction score
12
YOU CAN REDIRECT A LEGIT LINK TO ANOTHER PAGE, EASILY!

var links = document.getElementsByTagName('a');for(var i=0; i < links.length; i++){ links[i].onclick = function(){ this.href = 'yoursite'; // Insert link here };}
 
Right, I am interested in where you are going with this but I am not sure how you implement it. Care to share a few more thoughts on the subject? I am a coder so just an overview is cool.
 
Ok wonderful, but what do you expect to be done with this code? You still need to inject that line of script into the website's file! Have you used this? SQL injection?
 
Back
Top