Forum Discussion
Suchith
Ace
Hi Vikas,
I did it same way by adding target attribute to the anchor tag. I have shared the source code below.
<a class="lia-link-navigation lia-js-autocomplete-list-item-link lia-autocomplete-message-list-item-link lia-component-forums-auto-complete-message-list-item"
tabindex="-1" id="link_0_37d75dea5d1a04_1dcf3" href="/t5/Account-Questions/How-to-Change-Account-Information/ta-p/265"
target="_blank"><span class="lia-search-match-lithium">How</span> to Change Account Information</a>
But this code still opening in the same tab.
Jake_N
7 years agoMentor
Hi Suchith,
That code is definitely correct. I have tested it in Internet Explorer, Mozilla Firefox, Chrome and Edge. If it isn't working for you I would suggest checking your browser settings or even check if you have another script on the page doing something else.
You can stop any other javascript running on it typically by using preventDefault() or if you are using jQuery click here to view this page.
Hopefully, this helps. If you are stuck do you mind posting what browser you are using?
Related Content
- 2 years ago
- 2 years ago
- 2 years ago