From within shiny I want to open a HTML page in a new browser tab. Here it is pointed out that I need JS for that task. Let's say I want to open the URL http://www.google.com in a new tab from within my shiny app. I am not familiar with JS yet and I do not know which code where to include and how to call it from within the shiny app. How can I go about it?
You shouldn't need anything more fancy than traditional, shiny-ified HTML:
a("test", href="http://google.com", target="_blank")
You're just looking to set the target
attribute on the a
tag which tells your browser where to open this new link you created.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With