Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

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