i'm having hard time in opening a xpage in new tab. i have tried many ways as suggested in the below link No luck while opening a link in new tab using XPages but no luck. i couldn't use "link type" as i'm dynamically generating the url by passing parent document unid, document unid, frompage etc. that is the reason i'm using "onClick" event of the link. Any help would be greatly appreciated. Thanks in advance below is my code.
<?xml version="1.0" encoding="UTF-8"?>
<xp:view xmlns:xp="http://www.ibm.com/xsp/core">
<xp:link escape="true" text="New Call"id="linkNewCall">
<xp:eventHandler event="onclick" submit="true" refreshMode="partial" refreshId="linkNewCall">
<xp:this.action><![CDATA[#{javascript:var url="www.google.com"
//view.postScript("window.open('" + url + "')");
view.postScript("var tempwindow = window.open('" + url + "','_blank'); tempwindow.focus();")}]]></xp:this.action>
</xp:eventHandler></xp:link>
</xp:view>