<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)
Understanding Wire vs Imperative Apex Method Calls in Salesforce Lightning Web Components (LWC)
Understanding Wire vs Imperative Apex Method Calls in Salesforce Lightning Web Components (LWC) Introduction: Salesforce Lightning Web ...
-
Tableau Server is designed in a way to connect many data tiers. It can connect clients from desktop, mobile, and web. Tableau Desk...
-
Salesforce Marketing Cloud is a powerful marketing platform that provides multiple tools to manage marketing strategies and campaigns wit...
-
What is Performance Testing? Performance Testing is a software testing process used for testing the speed, response time, stabil...
No comments:
Post a Comment