Never been to CodeSnippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)

Get Arguments Passed To A Function (See related posts)

Javascript function can accept arguments which are not specified in the parameter list

function someFunc()
{
var firstArg = someFunc.arguments[0];
var secondArg = someFunc.arguments[1];
....
}

Comments on this post

unwiredbrain posts on Aug 28, 2008 at 22:39
http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Functions/arguments

You need to create an account or log in to post comments to this site.