Last active
August 13, 2022 18:42
-
-
Save rvvvt/4933b0d7a8217f7bbcec4086b87b9b85 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var myWindow = window.open(); | |
var imglink = document.querySelectorAll('img'); | |
for (i=0;i<imglink.length;i++){myWindow.document.write("<p><a href=\"" + imglink[i].src + "\" target=\"\_blank\">link</a>");} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment