Open external Links in a new window
Auteur : Graham O.Hi guys
When I create links in Website X5 i always have them set to open in a new window. I'm an affiliate for a photo site I'm a member of and the links they have provided me with all open in the same window.
Here is the code for one of the links:
<a href="https://www.dpbolvw.net/click-100561524-15048941" target="_top">
<img src="https://www.ftjcfx.com/image-100561524-15048941" width="728" height="90" alt="Make money in 30 seconds by uploading your photos. Sign up at ClickASnap.com" border="0"/></a>
I've changed the target="_top"> to target="_blank"> that I believe should open the link in a new window and in the website X5 preview, it does open in a new window, but not on my on-line site, it still opens in the same window.
Have I not got the code right?
Regards
Graham
(It > En)
... use > target = "_ blank"
... but in order to understand the problem, you have to post the LINK of the page that contains these links...
ciao
.
Auteur
Thanks for this KolAsim. I have done the target= "blank" as in my previous post which works in preview, but not on the live site.
I'll post the link when I figure out how to denable right click on my site.
Auteur
*enable right click.
Auteur
Got it!
Link:
https://www.anrdoezrs.net/click-100561524-15045431
Code:
<a href="https://www.dpbolvw.net/click-100561524-15048941" target="_top">
<img src="https://www.ftjcfx.com/image-100561524-15048941" width="728" height="90" alt="Make money in 30 seconds by uploading your photos. Sign up at ClickASnap.com" border="0"/></a>
Change to code that I made:
Changed target="_top"> to target="_blank">
Hi Graham,
Something curious happens to me when trying to enter the link: https://www.anrdoezrs.net/click-100561524-15045431
I get the ublock alert. (see capture)
when I try to enter only https://www.anrdoezrs.net/
redirects me to this other site. (see capture)
These sites are on a list of nasty things on ublock.
When I remove the temporary block it always redirects me to: https://www.conversantmedia.com/legal/privacy or to the site https://www.clickasnap.com/ when I just enter: https://www.anrdoezrs.net or https://www.anrdoezrs.net/index.html
If I enter https://www.anrdoezrs.net/index.php I get this one pixel only.
Have you already checked if you don't have malware on your site?
Or a dissatisfied customer who has reported your site as fraudulent or phishing?
Something drastic but it does happen.
Recommendation:
If in the preview you see your page as it should be seen... I would recommend deleting all your site files (public_html folder) and reloading everything. First delete and then upload.
I wish and someone reading this could recommend something better about it.
Greetings.
Auteur
Hi Miguel
With Firefox I get the attached screenshot.
... you should give me the LINK of the page where you applied the code related to the image ...
.
ciao
.
Auteur
Doh!! Sorry KolAsim
My web page link:
https://www.wizardlyimagery.co.uk/index.html
I've got the affiliate links for ClickASnap throughout my site, but the home page one above is the only one I've changed to target="_blank"
Just tested it again and it is now working OK! But it was not earlier. Don't know why uless my update/code change did not get onto my site for some reason. I'll update the rest of the afilliate links and if they play ball I'll let you know and this can be closed.
... OK ... I was pleased to know that you have solved ... ciao
Auteur
Confirming that this can now be closed. Thanks everyone.
Graham, to close this post simply select the correct answer (KolAsim?) and give it a tick