how to open href link in same window

Deepthi25
Giga Expert

 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>

 

7 REPLIES 7

Alikutty A
Tera Sage

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>

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

lie not redirecting the current page but need to show below in the same page. when i click the below shown drop down and select that item , below only item should come.

find_real_file.png