Calculate with Math.PI
<html> <head> <title>A Simple Page</title> <script language="JavaScript"> var inpRadius; inpRadius = 12; alert(Math.PI * ((inpRadius)*(inpRadius))); </script> </head> <body> </body> </html>