Reputation: 1
I am stuck with a wordpress plugin that requires me to enter a link via a pre-defined input field. The problem is that the resulting link opens in the same window and I need it to open in a new tab. I do not have access to the HTML to change the target attribute.
Is there any way to include syntax in the actual URL to have the link open in a new window/tab? Can I do it via CSS?
To be more specific - it's a gallery of images. So will have to implement this solution across ~15 elements. I can add a script to the page.
Upvotes: 0
Views: 1396
Reputation: 617
It's not possible using css You can try javascript like this
window.open('your_page.html', '_blank');
Upvotes: 1