|
| JAVASCRIPT toSource() METHOD
The toSource() method returns a string representing the source code for a user defined function.
Example:
<script type="text/javascript">
function member(name,email)
{
this.name=name;
this.email=email;
}
var susan=new member("Susan Lang","susan@somesite.com");
document.write(susan.toSource());
</script>
Will output:
({name:"Susan Lang", email:"susan@somesite.com"})
See Also:
|
|