• to evaluate a basic expression : just type it and "DoIt", eg "2+2" will output "4"
  • to get an object property : type its name, eg "navigator.appName" can give "Netscape"
  • to get all object's properties : call "get( )" function (defined by Object Viewer); sample:
    get( 'navigator as record' )		Note : get param must be quoted !
    get( 'navigator.plugins[0] as list' )
  • to get a form's element : use "get( )" with the fully qualified element; sample:
    	get('top.frames[2].document.forms[0].elements[1]')
    give:	‹input type="button" value=" Do It " onclick='DoIt();'›
    note: missing "get" will give no output since it will actually inserted into document
  • to define a function : enter full function definition and press "DoIt"; sample:
    function beep(n){
    	for (var i = 0; i < n; i++)
    		alert('BEEP !!');
    }
    then you can call : "beep(3)" and your navigator will beep three times.
  • to perform output while your input is running, use "Out()" ( instead of document.write( ) ); sample:
    for (var i = 0; i < navigator.plugins.length; i++)
    	Out( navigator.plugins[i].description );
    
    Use Out(whatever, true) to prevent insertion of line feed.
  • when and why use "get( )" : get( ) allow you to discover a property whose name is unknowed (using "as list" and "as record"). Futhermore get( ) solve the full "object to property descriptor" before evaluate it, so if a property name is wrong you'll know which. Sample :
    navigator.pluigns[0].description
    will give an error: "Window.Navigator.pluigns has no property indexed by '0'
    actually it has no such property because it doesn't exist !
    
    get( 'navigator.pluigns[0].description' )
    will say you that: [object Navigator] has no array named pluigns
    so you know which property of which object is undefined.
    Use "get(whatever, true)" to get property name and its value.