We help IT Professionals succeed at work.

HTML Question

erichss
erichss asked
on
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?
Comment
Watch Question

Ali KayahanFull Stack Developer

Commented:
Did you try to target new window in your links?

Author

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......
System 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">

Author

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?

Explore More ContentExplore courses, solutions, and other research materials related to this topic.