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
Dipu T.PaulDipu T.Paul 

How to add onClick functionality for an image

Hi all,
 
I have created  one visualforce page.In that page,I have one image.Now i want to give an onClick functionality
for that image.How can i do that? The code which i wrote for the image insertion shown below:
 
<apex:image url="{!URLFOR($Resource.images, 'images/edit.gif')}" width="10"
height="13" />
      
 
 Example: 
 
In  html , we can give
 
<img src="images/edit.gif" alt="View Emissions" onClick="showInfo('emm1');" /> 
 
Like this i need to do in visualforce.
 
Please add your valuable suggestions.
 
       
                
 
 
Sam.arjSam.arj
Code:
<apex:image url="{!URLFOR($Resource.images, 'images/edit.gif')}" width="10"
height="13" onclick="window.alert('clicked');" /> 

 This work fine for me!
Dipu T.PaulDipu T.Paul
Thanks.Now it is working fine.


Message Edited by Dipu T.Paul on 09-29-2008 07:48 PM