0

Hello i want to know how to make button to work as new page or create 2nd canvas?

hello please suggest me I'm trying HTML code <button onclick=”open('canvasdemo')”>button name </button> but its isn't working I'm trying to put a button that after clicking it open new page or open new canvas anything except this I try <button onclick="alert('warning')">button name </button> plz rply soon

3rd Feb 2017, 4:26 PM
Harshal Kharose
Harshal Kharose - avatar
4 Respostas
+ 6
window.location.assign("new_page_url"); // reload the page with the given url http://www.w3schools.com/fs/js_window_location.asp https://developer.mozilla.org/en-US/docs/Web/API/Window/location
4th Feb 2017, 9:48 AM
visph
visph - avatar
0
You can with js with the window.open()
4th Feb 2017, 1:04 AM
lefteris13s
lefteris13s - avatar
0
OK
9th Feb 2017, 5:55 PM
Harshal Kharose
Harshal Kharose - avatar
0
thank you I'll try
9th Feb 2017, 5:55 PM
Harshal Kharose
Harshal Kharose - avatar