Source Code Of An Object.

 
 
The toSource() method represents the source code of an object.
 
 
  1. <script type="text/javascript">

  2.  

  3. function employee(name,jobtitle,born)

  4. {

  5. this.name=name;

  6. this.jobtitle=jobtitle;

  7. this.born=born;

  8. }

  9.  

  10. var fred=new employee("Fred Flintstone","Caveman",1970);

  11.  

  12. document.write(fred.toSource());

  13.  

  14. </script>
 
Copy to Clipboard      Download code as Text Format
 
  Date entered : 25th Mar 2008
  Rating : No Rating
  Accessed  :  1045
  Submitted by :  goldeekhan
 
   Add Comment  Printer friendly
   View All Comments  Email to a friend
   Add to my Favourites Download PDF version
   Rating  
 
                 Click each image to add
this page to each site.
 
 
 
Comments Available

    No comment available at the moment.Be the first one to make a comment

 
Related JavaScript Source Codes
  • E-mail Validation
  • Required Fields
  • Alert user depending on browser
  • All details about browser
  • More Browser Detection

  • Copyright © 2013 VisualBuilder. All rights reserved