Insert Hyperlink and open in new tab.

Kifrez
Kilo Guru

Hi , how do I get the following link to open automatically in new tab instead of the same tab?

The following code is entered in journal type field.

[code]<a href="http://www.service-now.com">ServiceNow</a>[/code]

If the link is click from below screenshot, it will open in same tab and generate error.
find_real_file.png

find_real_file.png

1 ACCEPTED SOLUTION

Yes, Mike is right, use:

[code]<a href="https://google.com" target="_blank">Google</a>[/code]

 

Other options:

ValueDescription
_blankOpens the linked document in a new window or tab
_selfOpens the linked document in the same frame as it was clicked (this is default)
_parentOpens the linked document in the parent frame
_topOpens the linked document in the full body of the window

 

Also see for explanation:

https://www.w3schools.com/tags/att_a_target.asp

View solution in original post

3 REPLIES 3

Mike Patel
Tera Sage

try

[code]<a href="https://google.com" target="_blank">Google</a>[/code]

 

Kifrez
Kilo Guru

Hi @Willem , following up from other post (insert hyperlink in additional comments), how do I get  the code to open in new tab?

Yes, Mike is right, use:

[code]<a href="https://google.com" target="_blank">Google</a>[/code]

 

Other options:

ValueDescription
_blankOpens the linked document in a new window or tab
_selfOpens the linked document in the same frame as it was clicked (this is default)
_parentOpens the linked document in the parent frame
_topOpens the linked document in the full body of the window

 

Also see for explanation:

https://www.w3schools.com/tags/att_a_target.asp