+ 2

Open links with JavaScript

I want to click on a button and open a link. Someone can help ? https://code.sololearn.com/Wrxa73MXHgsa/?ref=app

2nd Feb 2018, 11:37 PM
Vinicius Rocha Perrud
Vinicius Rocha Perrud - avatar
2 Respostas
+ 2
I resolve. I created a <button> tag and inside a <a> tag
3rd Feb 2018, 12:24 AM
Vinicius Rocha Perrud
Vinicius Rocha Perrud - avatar
+ 3
You can change button to link and change css to make link looks like button or add event ‘on click’ in JavaScript and redirect to desired page ;)
3rd Feb 2018, 12:09 AM
Wacław Zalicki
Wacław Zalicki - avatar