HTML Question

Is there a line of code that can be added at the beginning of an HTML file to ensure all links open in a new window?
erichssAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ali KayahanFull Stack DeveloperCommented:
Did you try to target new window in your links?
0
erichssAuthor Commented:
That can be done, but they way the file is updated, it's gonna be alot easier to have it set for all links by default to open in a new link, if possible......
0
erikTsomikSystem Architect, CF programmer Commented:
The following HTML code will enable you to open all of your links in a new window. Place this code between your <HEAD> and </HEAD> tags within your HTML:
<base target="main">
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
erichssAuthor Commented:
Now does anybody know of where I may be able to enter that text in an excel workbook that if that excel workbook is saved as an html file that it would enter it in?
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
HTML

From novice to tech pro — start learning today.