JavaScript Tutorial/Math/toString
Math.toString()
The toString() method returns a string value representing the object.
<source lang="javascript">
<html>
<body> <script language="JavaScript"> </script> <form name=form1> <input type="button" value="Get String" onClick="copy()">
The result of toString is: <input type="text" name="answer" size=20> </form> </body> </html></source>