<script type="text/javascript">
function turnRed(id) {
alert("hi");
var myPara = document.getElementById(id);
alert(myPara);
myPara.style.color = "green";
}
</script>
<apex:commandLink action="{!gogoogle}" target="_blank" value="Go Google" id="check" style="color:red" onclick="turnRed('{!$Component.check}')"/>
Sunday, December 18, 2022
Changing hyperlink from one color to another color
Subscribe to:
Post Comments (Atom)
-
Salesforce Certified Administrator Salesforce Certified Advanced Administrator Salesfo...
-
As a Salesforce Admin, Salesforce flows are one of the most effective ...
-
1. What is the purpose of writing the test class? After developing an apex class or apex trigger we should write the unit tests a...
No comments:
Post a Comment