Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Salesforce
  3. Question
Salesforce

How to trigger a javascript href in LWC?

Asked by Claudine Tippins Jun 6, 2024 2.2K views 2 answers
Share

About this question

 I have dynamically created a href in a js file.

I have to trigger the from the js file and the link is not present in the HTML part. But unable to trigger the link.

let content = ;

I have to trigger the above statement from js.

NB: I can't use jquery

Your answer

2 Answers

More Salesforce discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Salesforce Blogs

Guides, tips and career advice on Salesforce from JanBask experts.