开发者

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

开发者 https://www.devze.com 2023-02-20 00:03 出处:网络
how to create popup window with javascript in 开发者_StackOverflowoutput link attribute in visualforce page in salesforce. let me knowVisualForce is not just apex tags, it\'s HTML + apex namespace, so

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

精彩评论

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