How to open a link in a new browser window, but not a tab
2 years ago
Currently I'm working on linking a Web Help system with my website. I can open a specific topic in a new tab in the web browser by using a hyperlink like this:
<a href="https://www.helpsmith.com/webhelp/topics/help-project.htm" target="_blank">Get Help</a>
But how can I force the web browser to open the link in a new instance of the browser program?
PS: I believe that would be easier for the users of my web app (with low computer skills) who need to access a help topic from a specific webpage.
Using Window.Open() method
You can find the description of the window.open method at:
class="new_window"in a new browser window.
1. Include jQuery to the
<head>section of your webpage by adding the line below:
2. Add the following code into the
<body>section of your webpage
3. Add a hyperlink linking to a topic:
Defining the window position and size
Please note that the
window.open()method allows you to specify the desired position and the size of the browser window. For example, see the sample code above.
Sample HTML File
You can also download a sample HTML file that demonstrates how it works in the attachment below.
Perfectly, that's exactly what I need.
Many thanks for your help!