Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js update all links

var anchors = document.getElementsByTagName("a");

for (var i = 0; i < anchors.length; i++) {
    anchors[i].href = "http://www.mysite.com/?redirect=" + anchors[i].href
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #update #links
ADD COMMENT
Topic
Name
2+9 =