Mega Code Archive

 
Categories / JavaScript Tutorial / Function
 

Function toSource()

The toSource() method can create a copy of an object. <html>     <body>     <script lanuguage="JavaScript">     <!--         var aString = new String("This is the source");         bString = aString.toSource();         document.write(bString);     -->     </script>     </body>     </html>