Script Categories

Calculators >>> Tangent.

Enter the opposite and adjacent angle values and JavaScript will solve the tangent angle for you.

Opposite Angle Adjacent Angle Tangent Angle

Add the below code to the <body> section of your page:

<script language="javascript" type="text/javascript">
/* Visit for full source code
and get more free JavaScript, CSS and DHTML scripts! */
<!-- Begin
function calctan(form) {
var opp = eval(form.opp.value);
var adj = eval(form.adj.value);
form.tan.value = opp/adj;
// End -->
<table border=3 cellspacing=2 cellpadding=5>
align=center><i>Opposite Angle</i></td>
align=center><i>Adjacent Angle</i></td>
align=center><i>Tangent Angle</i></td>
align=center><input type=text name=opp size=15></td>
align=center><input type=text name=adj size=15></td>
align=center><input type=text name=tan size=15></td>
colspan=3 align=center><input type=button value="Calculate!" onclick="calctan(this.form)"></td>

JavaScript Editor Get Advanced
JavaScript and Ajax Editor,
Validator and Debugger!

1st JavaScript Editor.

Code was highlighted by 1st JavaScript Editor (The Best JavaScript Editor!).

Bitcoin Dice - Crypto Casino . Cash Advance Payday Loans USA