Onclick Functions

<button id="urlbutton" onclick="myfunc()">Submit</button>
...
<body>
	<script src="index.js"></script>
</body>

index.js

function myfunc(){
	console.log("i do stuff")
}