<!--
The opc-tag-set attribute makes the element interactive.
The 'tag' setting picks the server tag to alter.
The 'evt' setting monitors the click event.
The 'set' setting tells the server to toggle the value between true and false.
-->
<div id="imgPump1"
opc-tag-set='{"tag":"Pump.Value",
"config":{
"evt":"click",
"set":"toggle"}
}' >
CLICK ME
</div>
/*
You also have the option to programmatically read and write server values within your own client-side javascript code.
*/
// Read the Pump.Value server tag and assign to a variable
var pv = OPC.get_value("Pump.Value");
// Set the server value of Pump.Value to "True"
OPC.set_value("Pump.Value","True");