VB-NET Click an element (click on itself) enabled false, to be enabled true

2

Hello.

My question is in VB-NET

How can I leave Enabled true, an image that is Enabled false by clicking on it itself. Is it possible?

    
asked by anonymous 30.04.2018 / 01:12

1 answer

1

Good afternoon, you can do this by manipulating via javascript, follow the example below:

	function troca()
	{
		
		document.getElementById("imagem").style.display = 'none';
	}
<!DOCTYPE html>
<html>
<body>
	<p>Click na imagem...</p>

	<img id="imagem" src="https://i.ytimg.com/vi/PrjrEZcQM7o/maxresdefault.jpg"onclick="troca()" style="display: normal" />


</body>
</html>
    
04.05.2018 / 20:15