You need to sign in to do that
Don't have an account?
vin_dev
How to open a link in a new window in Visualforce page <apex:outputLink>
Hi All,
I need to open a link in a new window using <apex:outputLink>.I set target="_blank".am using Google Chrome.While I click the link,the page is opened in a new tab.But,I need to open it in a new window.Please help me to find a solution.
Thanks in advance.
What you can do is, you can give a try to onclick JS.
Have a look here http://stackoverflow.com/questions/726761/javascript-open-in-a-new-window-not-tab
with OutputLink link we canot open the new window, here you need to give the Onclick and call to window.open like
<apex:outputLink onclick="window.open(your redirected page')">
Hope you understand
Thanks
Balu
Thanks to everyone,
I used the following to open a link in a new window,
<apex:outputLink onclick="window.open(URL,'','width=500,height=500')">Click here</apex:outputLink>
<apex:outputLink value="{!url}" target="_blank">Click Here </apex:outputLink>
<script type="text/ng-template" id=" OK_JobStatistics_Monitoring_List_IMS.template">
<apex:outputLink value= "{!URLFOR($Page.OK_VR_RelatedList_All_IMS)}" id="page">Click here</apex:outputlink>
</script>
after Clicking On ClickHere button Only VF Page is getting Called. So please let me know how to call VF page without Clicking anything Directly.
As soon as my code executes it should open VF page