P5.js: link implementation

Created on 18 Jul 2016  路  1Comment  路  Source: processing/p5.js

Hi there,
I've created a button in my sketch, using the p5.dom library and I would simply like it to open an URL on a blank window, when it gets pressed. Does a link() function exist in p5js? Or maybe some native javascript I could use?

Thanks!

Most helpful comment

window.open() should do the trick: http://www.w3schools.com/jsref/met_win_open.asp

>All comments

window.open() should do the trick: http://www.w3schools.com/jsref/met_win_open.asp

Was this page helpful?
0 / 5 - 0 ratings