Manages the user-defined data of the top-level WebSquare object.
The WebSquare object is newly created upon page changing. Data set in $w.top is also initialized.
Type
- engine
Property Summary
Event Summary
Method Summary
- getAttribute( key )
- Gets the user-defined data of the top-level WebSquare object.
- removeAttribute( key )
- Removes the user-define data of the top-level WebSquare object.
- removeSession( )
- Removes the entire user-define data of the top-level WebSquare object.
- setAttribute( key , value )
- Sets the user-defined value of the top-level WebSquare object.
Property Detail
Event Detail
Method Detail
- getAttribute( key )
-
Gets the user-defined data of the top-level WebSquare object.
Parameter name type required description key String Y Key in the browser session Return type description Object Instance for the specified retType Sample$p.top.getAttribute( "custInfo" ); - removeAttribute( key )
-
Removes the user-defined value of the top-level WebSquare object. Returns the existing data.
Parameter name type required description key String Y Key in the browser session Return type description Object Removed session value Sample$p.top.removeAttribute( "custInfo" ); - removeSession( )
-
Removes the entire user-defined data of the top-level WebSquare object.Sample$p.top.removeSession();
- setAttribute( key , value )
-
Sets the user-defined value of the top-level WebSquare object. The existing data, if any, will be overwritten.
Parameter name type required description key String Y Name in the browser session value String Y Key in the browser session Sample$p.top.setAttribute("userName", "Hong GD");