密谋-防止<a> Tag from open new tab

时间:2018-07-03 17:23:03

标签: anchor plotly

The x label of my plotly diagram contains a link to the selected data point:

let str = '<a href="' + url + '"target=' + '_self' + '>' + cycleStart[1] + '</a>';

But the link is always opened in a new tab. I know that the target attribute causes this problem. But as you can see my simple solution is not working. I already searched

target="_blank"

in the plotly.min js file and changed it into

target="_self"

Also this does not work for me. So how can I prevent this Tag from opening a new tab? I want the url to open in the same window.

0 个答案:

没有答案