close browser from page link <a href>

kayode_faith February 29, 2024

I am seeking help or pointers with this request in the Jira service desk portal

User is asking when this link is clicked, the page opens in itself or closes.

{color:red}*Please Click Here* {color} [to submit a New Vendor Request| https://test.com] \

I have tried 

{code:javascript}
<a href="javascript&colon;window.close();" "https://www.w3schools.com/" >Visit W3Schools.com!</a>
{code}

Now in javascript you cannot close the page unless it was opened with javascript&colon;window.open()  Any ideas will be appreciated.

 

Thank You

1 answer

0 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 29, 2024

Welcome to the Atlassian Community!

You should add the "new window/tab" in your link.  Technically, the web does not support this, but you can easily trick it into doing it.  For example

<a href="https://somewhere.com" target="_blank">Somewhere</a>

kayode_faith February 29, 2024

Thanks Nic I had tried that,  it did not work.    

2024-02-29_21-32-53.pngIn case anyone is interested this is the field I am trying to manipulate to open in the same window if possible.  Thank you

010555.png

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events