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
4 Answers
+ 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
0
You can with js with the window.open()
0
OK
0
thank you I'll try