Salve io ho usato questo programma per aggioranre un frame tramite un bottone con immagine. Il programma funziona per aggiornarlo ma io vorrei fare in modo che oltre ad aggiornarlo fa anche questa operazione:
<a href="http://192.161.1.11/arduino/digital/7/1" target="iframe_a">
cioè aprire il link nel iframe_a
IL programma è questo:
codice:
</body>
</html>
<iframe width="0%" height="0px" src="demo_iframe.htm" name="iframe_a"></iframe>






<html>
<body>
<html>
<iframe name="Right" src="http://192.161.1.11/arduino/tempset/2/1"></iframe>
<body><div style="padding:30px;">
<a href="#" onclick="refreshIframe();"#""><img src="piu.png" width="80" height="80" alt=""/></a> 


<script>
function refreshIframe() {
    var ifr = document.getElementsByName('Right')[0];
    
    ifr.src = ifr.src;
}
</script>
</div>