top.window

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2020 05:00 AM
Hi,
What is the use of top.window. Why top.window works in portal but window. is there any document related to this??
Thanks,
- Labels:
-
Service Portal Development

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2020 05:02 AM
If you are within a frame:
window
refers to the current frame.parent
refers to the parent of the current frame.top
refers to the outermost frame.
If you're not within any frame, these will all just be a reference to the current window. If you're only within one level of frame, parent
and top
will both be a reference to the same thing.
Thank you

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2020 05:05 AM
Thanks Priyanka!
Can you please answer this: Why 'top.window' works in portal but 'window' does not work in service portal. is there any document related to this??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2020 05:08 AM
It is not supported in ServicePortal (ServiceNow catches the calls):
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2020 06:32 AM
Kind regards,
Willem