+ 1

How do i make my blog with many buttons that link to a page in the same blog site

How do i make my blog with many buttons that link to a page in the same blog site

19th Jan 2020, 12:16 PM
Davis Aforte Vidzro
Davis Aforte Vidzro - avatar
3 Antworten
+ 4
Also you can stylize anchors as buttons. As .btn CSS class for example.
23rd Jan 2020, 7:50 AM
SergeiRom
+ 1
Okk
19th Jan 2020, 1:56 PM
Davis Aforte Vidzro
Davis Aforte Vidzro - avatar
0
You can use the onclick attribute of buttons for linking pages together. All you have to do is create a button like this: <input type="button" onclick="func()"> And, attach a Javascript function to the onclick attribute. The Javascript function should look like this: function func() { window.open("https://example_blog.com/another_page.html"); } This opens a link in a new page. If you want it opened in the same page, you can attach the optional parameter name, like this: window.open("https://example_blog.com/another_page.html", "_self");
19th Jan 2020, 1:53 PM
Jianmin Chen
Jianmin Chen - avatar