gs.setRedirectURL(window.top.location = "https://"+document.domain+"/nav_to.do?uri ----document.domain mean?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-08-2017 01:08 AM
gs.setRedirectURL(window.top.location = "https://"+document.domain+"/nav_to.do?uri ----
window.top.location?mean
document.domain mean?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-08-2017 04:40 AM
Hi Kids,
What information you need. Do you need difference in those?
javascript - Difference between window.location.href and top.location.href - Stack Overflow
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-08-2017 09:42 PM
no i need to know what do they mean in the url
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-08-2017 09:53 PM
Hi kiddy,
Please find the below snapshot which explain all 3 of them.
document.domain - Get the domain name of the server that loaded the document
window.location.href - Get the location of the current page.
top.location.href - Within the windows of the current page, get the location of the top window. If there is no parent, it returns the current window.
Hope this helps. Mark the answer as correct/helpful based on impact.
Thanks
Antin