Navigation via script

What is equivalent to window.open(URL, “_blank”) in YM

Req:

Although within Quick Reply there is a LINK option where I can provide a redirection URL but for analytics purpose I need to invoke a function, from within the same function I need to navigate user away from chatbot in a new tab.