You need to sign in to do that
Don't have an account?

open a new webpage when click "apex:outputLink"
Can you give me sample code for opening a new webpage when I click on a image.
This is the image display:-
<apex:image url="{!URLFOR($Resource.Playbook_Resource, 'assets/css/img/bestPractice.png')}" onclick="javascript:NewPage('{!object.pageurl}'/>
I am storing the URL of the new image in the field object.pageurl
<apex:image url="{!URLFOR($Resource.Playbook_Resource, 'assets/css/img/bestPractice.png')}" onclick="window.open('{!object.pageurl}');"/>
Try this