Question

i will to give a specific outside link in my navigation with target blank. How can i solve this with jQuery ?

Here my Site:

http://devel.hoevermann-gruppe.de/

If you click `auf "Kontakt" in the head navigation you see the mega sub menuand if you click on Facebook, so the outside started in the same window tab but i will use the target blank tag.

Was it helpful?

Solution

Is this what you want?

$('a[href*="www.facebook.com"]').attr('target', '_blank');
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top