Symonett Beatriz D. has been in the workforce since 2014. Symonett Beatriz started their career as a QA/QC Manager at DHLI Dental Health Laboratories, Inc. in 2014. In 2015, they moved on to a Technical Consultant role in Freelance. Since 2018, they have been a Freelance Talent Executive where their job descriptions include converting incomplete profiles to complete profiles.
Forum
Client-Side Development
JavaScript
[RESOLVED] How to make a link open in a new window Results 1 to 15 of 15 Thread: [RESOLVED] How to make a link open in a new window Tweet #1 Join Date May 2013 Posts 4 [RESOLVED] How to make a link open in a new window I have a link and I want it to open in a new window. I have tried the following code, but it doesn't work. Any help would be appreciated.
Code: <a href="http://www.example.com" onclick="window.open(this.href); return false;">Link</a> #2 Join Date Mar 2007 Location localhost Posts 4,037 The code you have should work, have you tried adding target="_blank" to the link?
Code: <a href="http://www.example.com" target="_blank">Link</a> --> JavaScript Frameworks like JQuery, Angular, Node <--
... and please remember to wrap code with forum BBCode tags:-
[CODE]...[/CODE] [HTML]...[/HTML] [PHP]...[/PHP]
If you can't think outside the box, you will be trapped forever with no escape... #3 Join Date May 2013 Posts 4 Originally Posted by \\.\ Originally Posted by The code you have should work, have you tried adding target="_blank" to the link?
Code: <a href="http://www.example.com" target="_blank">Link</a> #4 Join Date Mar 2007 Location localhost Posts 4,037 I am not sure what you mean by "it doesn't work"
Have you tested it in a browser?
What browser are you using?
What happens when you click the link? --> JavaScript Frameworks like JQuery, Angular, Node <--
... and please remember to wrap code with forum BBCode tags:-
[CODE]...[/CODE] [HTML]...[/HTML] [PHP]...[/PHP]
If you can't think outside the box, you will be trapped forever with no escape... #5 Join Date May 2013 Posts 4 Originally Posted by \\.\ Originally Posted by
Sign up to view 0 direct reports
Get started