I have a URL that contains a lot of JavaScript.
I want to strip the URL of all JavaScript using of course JavaScript!
Here's my HTML
<a id="product_photo_zoom_url" href="javascript:OpenNewWindow('/PhotoDetails.asp?ShowDesc=N&PhotoNumber=3&ProductCode=TCP65GT30', 640, 480); void(0);" title="" rel="lightbox">
Basically I'd like the URL to just look like this:
<a id="product_photo_zoom_url" href="/PhotoDetails.asp?ShowDesc=N&PhotoNumber=3&ProductCode=TCP65GT30" title="" rel="lightbox">
There are many instances of this so trimming off the first and last ten characters would not be sufficient.
Get Element by ID product_photo_zoom_url would be fine.
Thank you for helping me!