+ 21

How to open the link in Js.

I want to open the link in another page that is written in a.

13th Jun 2018, 7:13 AM
Arpit Mittal
Arpit Mittal - avatar
1 Odpowiedź
+ 1
Hi Arpit! I'm taking a wild guess at what you're asking for here, but you can specify that when a user clicks on a link (in the form of an anchor tag), for the file content to open in a new tab/window. For example, <a href="https://www.w3schools.com" target="_blank">Visit W3Schools</a> The default setup is usually whatever the user set the browser defaults to be or, in cases where the user doesn't explicitly change their browser settings, target="_self" so the file content appears in the current tab/window. Note: There is no JavaScript required. If this doesn't fit what you're looking for, then we probably need more information/details from you in order to be more helpful to you. :) I hope this helps! Best, -- Janning.
16th Jun 2018, 11:57 AM
Janning
Janning - avatar