Hi - I have a weird thing happening. I have a link on an image, and set it to open in a new tab. However, when the link is clicked, it not only brings the user to a new tab to open the link but it also changes the web page where the link was located to that page. For example – we are linking to Bank of America. So when the link is clicked a new tab opens to Bank of America, but our web page also changes to Bank of America. Does anyone know why this is happening and how I can prevent it? (See attached file; I viewed the code in browser and it does “target_blank”???)
Also: I found out how to hyperlink a column or div via discussion here, but have yet to figure out how to have that link open in a new tab. I’ve tried adding “target_blank” but that’s not doing it unless i’m adding it in the wrong place.
Name: onclick Value (type out don’t paste): location.href=‘https://xxxxxx.com/’;
Thanks; but where do I add that? In the custom attributes section or in the header? I tried putting it in custom attributes just as you noted above but it’s still not opening in a new tab…
Currently using custom attributes panel and the following:
I wasn’t using the onclick with the image link; that one I was doing the normal way in the interactions section; I am only using onclick with the hyperlinks on the columns and divs …
Hmm now i’m confused. All I did with that one is select the image, go over to “interactions”, input the url and seclect “new tab.” So i’m not sure how to change it.
Oh my gosh, you are right!! I didn’t even remember putting that there. Deleted it and it works fine. Thanks so much ! Now I just need to figure out how to have the onclick links on my columns open in a new tab…
Currently using custom attributes panel and the following: