- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2016 07:19 AM
I need to fetch the URL, when i select an item from the category.
function onload()
{
var href = window.location.href;
alert('href ' + href);
var what = getTopWindow().location.toString();
alert('TW ' + what);
}
These alerts works for catalog items but does not display when i load the item on service portal.
Thanks and Regards
Jayanth
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2016 02:14 AM
Hi,
If you don't find window object then try using 'this' object.
example:
this.location.href
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2017 08:07 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2018 03:49 PM
So, using "this" does work? The reason I ask is we are migrating from CMS to SPortal, and I'm looking at a way to redirect to a specific page in the SPortal, based on the selected choice in a drop down select box. And if this is the same Tim Woodruff from the Pakt Pub videos on Safari/O'Reilly, then cheers to you for all your hard work with those videos!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2018 01:51 PM
Yes I can confirm that "this" works this.location.href