Hi JavaScript guru. I have a simple JS question on how to replace the entire IMG src path on a page.
Currently, my IMG tags look like this:
<img src="path/to/image.jpg" alt="" />
Required Conclusion:
<img src="../image.jpg" alt="" />
So, when the page loads, it will go through all the IMG tags and replace the SRC path. Thank you in advance!
source
share