开发者

how to create popup window with javascript in output link attribute in visualforce page in salesforce

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>&nbsp;|&nbsp;
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜