1
I have a javascript function running with button click.
<button id="lens" value="Zoom" onclick="magnify('imgL', 2);
It is a function that is in external . js, which Zoom in an image by activating a Lens on the mouse tip.
But I cannot deactivate the function. The user has to click to activate the zoom (as it is) and if they click again, DEACTIVATE the zoom.
How to remove a function (disabled) it with click of the button??
For those who want more information about the function, follow the link: Funcao Zoom Lens Javascript
PERFECT. My comrade, thank you very much.
– Brugo