Sunday, May 19, 2024
 Popular · Latest · Hot · Upcoming
188
rated 0 times [  193] [ 5]  / answers: 1 / hits: 82096  / 15 Years ago, wed, february 24, 2010, 12:00:00

How do you make an HTML button behave just like a hyperlink where, if you click on it, it will open a browser window showing a page you want?



I understand this much. I think I will use this

but instead of a link to some javascript code inside the quotes for onclick I want to put something simple that will launch a new browser window.


More From » html

 Answers
25

onclick and window.open



<input type=button onclick=window.open('http://www.example.com','_blank','resizable=yes') />

[#97504] Friday, February 19, 2010, 15 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
frederickmohamedw

Total Points: 21
Total Questions: 123
Total Answers: 105

Location: The Bahamas
Member since Tue, Apr 27, 2021
3 Years ago
frederickmohamedw questions
Wed, Sep 23, 20, 00:00, 4 Years ago
Sat, Jul 18, 20, 00:00, 4 Years ago
Sun, Apr 26, 20, 00:00, 4 Years ago
Sat, Jan 11, 20, 00:00, 4 Years ago
Fri, Dec 27, 19, 00:00, 4 Years ago
;