PropertyEventMethodIndex
$p.top - 5.0_4.4547B.20211124.201933

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
nametyperequireddescription
keyStringYKey in the browser session
Return
typedescription
ObjectInstance 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
nametyperequireddescription
keyStringYKey in the browser session
Return
typedescription
ObjectRemoved 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
nametyperequireddescription
keyStringYName in the browser session
valueStringYKey in the browser session
Sample
$p.top.setAttribute("userName", "Hong GD");