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

Hello,

Please try this out once

<select name="select-website"onchange="window.open(this.options[this.selectedIndex].value);">
<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>

If this dint work, try changing target to _parent or _top

Thanks!

Hi Alik,

 

all r opening in new tab only

 

Devyani_6
Mega Guru

Hi,

Refer below link, this will help you.

Opening URL on same window / Tab in Mobile Interface?

Mark Correct/Helpful. if this helps you.

Regards,

Devyani

find_real_file.png

hi devyani,

that is redirecting to that url in same page..  but i want to display that item on click of the url below only as shown in below fig.