function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
rakiraki 

Image to next page with id passing

I want to display images from a static resource on visual force page. By clicking on the image the page need to redirect to another page with id passing on url and image should representing the record of leads

 

how to do this with coding

Best Answer chosen by Admin (Salesforce Developers) 
PremanathPremanath

<apex:image url="{!URLFOR($Resource.NameofResouce)}" onclick="url/methodname"/> 

 

in class

Write a method with pagerefence. .. in that pagereference you can use your URL

 

 

Regards

Prem