Script Categories

Calculators >>> Radioactive.

Use JavaScript to find how much radioactive material remains after a given time.

Halflife Amount Time

The amount remaining is: or percent of the original sample.

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 computeamount(h,a,t){ 
// End -->
<TABLE border=1>
<TD><FORM name="radio" id="radio"><input name="h" size=10 ></TD>
<TD><input name="a" size=10 ></TD>
<TD><input name="t" size=10 ></TD>
<TD><input type="button" value="Calculate Amount Left" onclick="computeamount()"></TD>
<BR>The amount remaining is:
<input name="result1" size=22> or
<input name="result2" size=5> percent of the original sample.
<input type="reset" value="Reset Form">

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!).