Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Regarding the Use of getTopWindow()in servicenow

Ganesh75
Giga Contributor

Hi I got a doubt while going through the UI actions...What is the use of this

var w = getTopWindow(); 
   w.popupOpenFocus(url, 'related_list',  950, 700, '', 

Where I can find the getTopWindow class...Give me the link and the details that you have..

 

Thanks in Advance

1 REPLY 1

Harsh Vardhan
Giga Patron

 

adding a link here, kindly refer that. also you can use anywhere in java script based application.

 

Example

 

https://docs.microsoft.com/en-us/windows/desktop/api/winuser/nf-winuser-gettopwindow