Open link in new window - coffescript

coffeescript

Solution

You should try

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

Problem

How to get beahviour similar to HTML's `target='_blank'` inside coffeescript? so far I have tried: ``` window.location = "/site/#{pk}/goto_url/" window.attr('target', '_blank') ```

Original source