[SalesForce] Open new tab for pagereference, i dont have a command button cannot use ‘Target’ attribute

thanks @kevan

When the User clicks on the Custom link on a page layout, new tab should open routing to the url as formulated in the controller.
VF page is behind the custom link. I dont want to use a JAVASCRIPT, as we are in the verge of moving towards lightining.

Targer attribute (command button and link ) or javascript (windows.open) wont work out.

VF Page

<apex:page standardController="Asset" extensions="LaunchAssetButtons_CTRL" action="{!launchCTMOBRequest}" >
<apex:pageMessages ></apex:pageMessages>
<apex:outputPanel >
<script> window.open('{!url}', '_blank'); </script>
</apex:outputPanel>
<apex:sectionHeader title="Open Salesforce Case and Pop Page"/>   
<apex:outputPanel >If you see this page
</apex:outputPanel> 
</apex:page>

Contoller method

public string url {get;set;} 

Public string launchCTMOBRequest(){
url = 'www.google.com';
return url;
}

This VF page is the the engine behind the of a custom link. enter image description here
enter image description here

when ever i click on this link , a new tab should open with the above URl. I want to use only VF page not JAVA script button.

Can someone please help ?

Best Answer

I have achieved the above requirement , while creating the custom button , we can choose 'Open in new window' option and this solves my problem.

Thank you all for your valuable time :-) Venkatesh