8 years ago by cmysr
How to input hyperlink so when player collides with the exit, it will redirect to new tab on browser to a specific url?
Thanks!
Thanks!
This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact
var a = document.createElement('a'); a.href='http://www.impactjs.com'; a.target = '_self'; document.body.appendChild(a); a.click();
var a = document.createElement('a'); a.href='http://www.impactjs.com'; a.target = '_blank'; document.body.appendChild(a); a.click(); document.body.removeChild(a)