J
JS
I read the following in som sample code:
function createOpts(sel){
var s = new Array();
var num = 0, txt = "bo";
var ar = opt = null;
var n = sel.selectedIndex;
var args = createOpts.arguments.length;
....
....
....
....
The createOpts method that a select object as argument. Creates a new Array:
When no argument is specified for an Array I guess its just empty with size
1.
The line that says:
var args = createOpts.arguments.length;
Is it correct that args holds the number of options that the selectobject
contains??
function createOpts(sel){
var s = new Array();
var num = 0, txt = "bo";
var ar = opt = null;
var n = sel.selectedIndex;
var args = createOpts.arguments.length;
....
....
....
....
The createOpts method that a select object as argument. Creates a new Array:
When no argument is specified for an Array I guess its just empty with size
1.
The line that says:
var args = createOpts.arguments.length;
Is it correct that args holds the number of options that the selectobject
contains??