So, I have a cool one for you.
I need to scan my html document as it renders and replaces each
href=""
with
onclick="window.location=''"
Moreover, I need to transfer the link from href to window.location.
For example, if I had:
href="http://www.google.com.au"
he will become the following:
onclick="window.location='http://www.google.com.au'"
and I need to do this for every href in the document
I have no idea, but it should be in jQuery / javascript: D
Thanks guys.
source
share