This content has been marked as final. Show 3 replies
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns=" http://www.w3.org/1999/xhtml">
for (var i=0;i<document.anchors.length;i++)
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<form name="form" action="" method="post" onsubmit="fnCheckAnchors();">
<a name="1" href=" http://www.yahoo.com">Yahoo</a><br />
<a name="2" href=" http://www.google.com">Google</a><br />
<a name="3" href=" http://www.altavista.com">Altavista</a><br />
<input type="submit" name="submit" value="Submit" />
Thanks for taking the time to reply - much appreciated. Unfortunately this isn't what I need.
I probably wasn't clear enough in the original post, allow me to ellaborate:
These data strings will be coming from a database.
Basically the URL's that i want to extract are old and need to be replaced with new URLS... because the links have been inserted using dynamic content, I can't just do a simple replace() because I don't / wont know what the links are... I need something that will detect where the "<a href=" is and be able to determine how long that href value is and put that into a variable.