how to open href link in same window
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2018 08:38 AM
hi, i want to show the onclick URL in same page. Currently it is taking to new page and opening the Catalog item as per URL in serviceportal. please suggest how to open in same page down
<select name="select-website"onchange="window.open(this.options[this.selectedIndex].value);">
<option value="" onclick="https://dev68174.service-now.com/sp?id=sc_cat_item&sys_id=4a17d6a3ff133100ba13ffffffffffe7" >Dell E7490 (Standard Large Laptop)</option>
<option value="https://www.google.com/" target="_blank">SketchUp Pro</option>
<option value="https://www.flipkart.com/"target="_blank">External Monitor</option>
</select>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2018 08:49 AM
Please try this
<select name="select-website"onchange="window.open(this.options[this.selectedIndex].value, '_self');">
<option value="" target="_self" onclick="https://dev68174.service-now.com/sp?id=sc_cat_item&sys_id=4a17d6a3ff133100ba13ffffffffffe7" >Dell E7490 (Standard Large Laptop)</option>
<option value="https://www.google.com/" target="_blank">SketchUp Pro</option>
<option value="https://www.flipkart.com/"target="_blank">External Monitor</option>
</select>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2018 08:58 AM
yes this is working but this is loading in same page and redirecting current page to tht link( catalog item) . but i want to discplay the cat item down only when clicking that link
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2018 09:00 AM