+?xml version="1.0" encoding="utf-8"?> +!DOCTYPE html> +html xml:lang="en" lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops"> +head> +meta charset="utf-8"/> +title>Very Basic HTML+/title> +link type="text/css" rel="stylesheet" href="css/stylesheet.css"/> +/head> +body> +h2 style="margin: 0rem 0rem 0.83rem 0rem; text-align: left; line-height: 1em; font-size: 1.33rem; font-weight: bold;" id="doc1"><$n#l1>-1. Very Basic HTML+/h2> +pre>+code><input type="button" name="computeButton" value="Compute!" onclick="with (document.myForm) { result.value=compute(myInput.value); }"> +/code>+/pre> +ul> +li>+p>Include the JavaScript as the value of an HTML “event handler” attribute. For example:+/p> +p>+input type="button" name="computeButton" value="Compute!" onclick="with (document.myForm) { result.value=compute(myInput.value); }">+/p>+/li> +/ul> +/body> +/html>