+ Start a Discussion
CJagannathCJagannath 

Problem with opening SControl generated page in a different window

Hi,

 

In my visualforce page I want to have a link. If that link is clicked then a page containing all the account name should appear. I used <apex:outputLink value=”{!$SControl.ShowAllAccountName}” ; where ShowAllAccountName is my scontrol which fetches all the account name.

 

When I click the link from visualforce page, the page is redirected to another page for which my SControl is responsible. But I want this page should come in another window!

 

Is there any way to achieve this?

 

Any suggestion is highly appreciated.

 

Thanks and regards,

Jagannath

dchasmandchasman
The target attribute on outputLink is what you need (works just like the target attribute on an HTML <a> anchor tag):


Code:
<apex:outputLink value="https://www.google.com" target="myNewWindow">Google</apex:outputLink>

 


Message Edited by Tran Man on 12-13-2007 09:56 AM
CJagannathCJagannath
It worked! Thank you very much.