how to create popup window with javascript in 开发者_StackOverflowoutput link attribute in visualforce page in salesforce. let me know
VisualForce is not just apex tags, it's HTML + apex namespace, so anything you can use in a html you can use here. One way to do this is by regular <a>
tag
<a href="javascript: window.open(...);">{!someApexProperty}</a>
the way to do similar thing with apex tag is
<apex:commandLink value="{!someApexProperty}" onclick="window.open(...); return false;" />
EDIT:
Based on your comment For your problem you can use the following:
<a style="font-weight:bold" href="javascript: window.open('/{!row.id}/e?retURL=/apex/{!$CurrentPage.Name}');">Edit</a> |
精彩评论