Filter (Advanced Search)
Downloads
0
Views
251
Video

Video is not available... Embedded is previous playlist.

Details

To use an HTML button as a link, you have to add some JavaScript code.

JavaScript allows you to specify what happens at certain events, such as a click of a button:

Example

<button onclick="document.location='index.html'">Button Link</button>


<!DOCTYPE html>
<html>
<head>
<title>Button as a Links</title>
</head>
<body>

<h2>Button as a Links</h2>

<button onclick="document.location='/index.html'">Button Link</button>

</body>
</html>



Ad