chris_quan
10-20-2004, 08:17 AM
All,
Is there a way to use Javascript to search and replace all link in the body with a new value? My search engine generates links with Mapped drive which causes problems with Firefox and Netscape (works fine with IE).
For example, on each of the search result, the link HREF="C:\Test\test\test.html" should be replaced with HREF="http://www.abc.com/test/test.html" ???.
Since these search result are dynamic, maybe I could use Onload on the body and searc&replace all of the HREF="C:\Test\test\ with HREF="http://www.abc.com/test All links start with HREF="C:\Test\test\
Is this possible? If it is, sample code, please.
Thank you.
Chris
Is there a way to use Javascript to search and replace all link in the body with a new value? My search engine generates links with Mapped drive which causes problems with Firefox and Netscape (works fine with IE).
For example, on each of the search result, the link HREF="C:\Test\test\test.html" should be replaced with HREF="http://www.abc.com/test/test.html" ???.
Since these search result are dynamic, maybe I could use Onload on the body and searc&replace all of the HREF="C:\Test\test\ with HREF="http://www.abc.com/test All links start with HREF="C:\Test\test\
Is this possible? If it is, sample code, please.
Thank you.
Chris