+ Start a Discussion
virenviren 

event on <apex:page>

Hi,

 

How can we apply the click event on page?

Example : Once I pressed click on page then background color of page should be change.

Subhani PSubhani P

Hi,

 

You can use Java script or event functionality for it.

 

Please check the following link:

 

http://www.salesforce.com/us/developer/docs/pages/Content/pages_compref_actionSupport.htm

 

Thanks,
Subhani,
Salesforce Certified Developer,
www.mydbsync.com.

souvik9086souvik9086

Can use this

 

<apex:page>
<script type="text/javascript">
    window.onload = function(){
        LoadMethod()
//Your code for color change } </script> Please wait for a while.... <apex:form id="JavascriptCall"> <apex:actionFunction name="LoadMethod" action="{!YourMethod}" > </apex:actionFunction> </apex:form> </apex:page>

If this post is helpful please throw Kudos.If this post solves your problem kindly mark it as solution.

Thanks

 

vertexCodersvertexCoders

<apex:page >

<style>
#DIV_Container{padding: 0; margin: 0; background-color: #F3F3EC;}
</style>

<div id="DIV_Container">
<apex:outputText style="Color:#FF3300; background-color:yellow; font-style:bold"
value="Remember to enter partner(s)">



</apex:outputText>
</div>

</apex:page>