TW.location
The TW.location object is only used in Expression and Validator functions and the Grid widget validation expressions. It returns the current browser URL location of the mashup. Use the standard JavaScript location object in any other widget besides functions.