+ 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
3 odpowiedzi
+ 4
Also you can stylize anchors as buttons. As .btn CSS class for example.
+ 1
Okk
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");