Open link in new window - coffescript

How to get HTML-like beahviour target='_blank'inside coffeescript?

so far i tried:

window.location = "/site/#{pk}/goto_url/"
window.attr('target', '_blank')
+4
source share
1 answer

You must try

window.open "/site/#{pk}/goto_url/", "_blank"
+7
source

Source: https://habr.com/ru/post/1537508/


All Articles