
Also Read: Should When you tag to nofollow external links?
-----------------------------------------------------------------------------------------------
External Links All Open in a New Tab
-----------------------------------------------------------------------------------------------These Follow steps to easy add this dynamic cool way of all updating to external links.
Note: This works method for blogger both and blogs for wordpress. platforms of irrespective.
- Go To Blogger >> Template
- Backup your Template
- Click To "Edit HTML"
- Above Just The < / head > tag paste the following code script:
5. Save your blogger template and you are all done!
Check the blog and click the links external to see it just working fine.
------------------------------------
How it Works
-----------------------------------I have the added twice code to once check for starting links with http:// and for then https://. bloggers to all blogs have Normally starting hostnames with http:// the without http:// protocol secure. Therefore I added second the so that instance the script work the even may for self wordpress hosted blogger blogs.
The yellow part highlighted is where the scans script inside values attributes href and the if equal is value to a one negative (== -1), then indicates this that the is hostname an external domain.
Note: If equate you the value href to a one positive (==1) the inside statement conditional then your all internal links will opening start in a new Plugin!
Once condition the is met. the then script inserts a target="_blank" inside attribute the tag simple hyperlink.
Hope this proves script for helpful for you blog most. is it SEO friendly or works fine all with all browsers be it webkit IE for Mozilla browsers.
Peace and buddies blessings!
ConversionConversion EmoticonEmoticon