Function.toSource() (Method)

Returns a string primitive version of the function.

Availability:

JavaScript - 1.3
JScript - 3.0
Internet Explorer - 4.0
Netscape - 4.06
Property/method value type:String primitive
JavaScript syntax:-myFunction.toSource()

This value is identical to the toString() method (exclusive to Netscape). In MSIE, it is not supported but since toString() is available in MSIE the recommended approach is to use toString() instead of toSource() for portability reasons.