Hello. Sorry if this is obvious but I can not find a solution. How to make it so that when you click on a button, you are redirected to an external web site?
I already know about OnMouseDown function.
Hello. Sorry if this is obvious but I can not find a solution. How to make it so that when you click on a button, you are redirected to an external web site?
I already know about OnMouseDown function.
In your onMouseDown function, add the following code:
window.open(url);
or to open it in a new tab:
window.open(url, '_blank');
Thank you so much! You saved me for the second time!