HTML - Tags - <output>

#98 of 147
Next p

     <form oninput="result.value = 2 * 3.14159 * parseFloat(r.value);">
         <label>Enter radius:</label>
         <input type="number" name="r" value="1" />
             <label>Circumference is:</label>
             <output name="result"></output>

The output element represents the result of a calculation.

A live example:


N of

Ads by Google

Ask a question, send a comment, or report a problem - click here to contact me.

© Richard McGrath