Log in

View Full Version : How to open a random link in a new window?



morykwas
11-17-2020, 11:22 PM
Hi, everyone--
I really like this Javascript code which I was able to incorporate into our photography club website:

http://www.javascriptkit.com/script/cut1.shtml (http://www.javascriptkit.com/script/cut1.shtml)

However, I would like it to open the random link in a new window instead of the currently active window. I tried inserting target="_blank" in various locations, but without success.

Could someone please advise me?
Many thanks,
--Ed