How to make HTML file open in new window?

by xckoza
4 replies
  • WEB DESIGN
  • |
When I edit html files from my computer, they keep opening in the same browser that I have opened. How do I fix it so that html files will open in their own windows?
#file #html #make #open #window
  • Profile picture of the author awesometbn
    Take a look at these two code reference pages.

    hxxp://alexking.org/blog/2005/12/30/new-windows
    hxxp://www.htmlcodetutorial.com/linking/_A_TARGET.html

    If you cannot get it to work correctly, double check your browser setting and various browser plugins. Or create a vmware test environment and try a few experiments on all kinds of different browsers.
    {{ DiscussionBoard.errors[670768].message }}
  • Profile picture of the author mywebwork
    I believe you need quotes around the target, like any HTML parameter:
    Code:
    <a href='http://cnn.com' target='_blank'>Open CNN</a>
    On browsers that support tabs this often opens a new tab as opposed to a new window.

    Bill
    {{ DiscussionBoard.errors[671081].message }}
  • Profile picture of the author seobacklinks2u
    use the target = "_blank" in the <a> tag
    {{ DiscussionBoard.errors[671652].message }}
  • Profile picture of the author FeivelHH
    or do you mean when you check your html files local then they are opened in one browser window (everytime the same) and not a new window or tab opens?
    {{ DiscussionBoard.errors[678014].message }}

Trending Topics