buongiorno, ho creato un estensione in html per google chrome, in pratica scrivi il teto nella textarea premi scrivi e il testo compare in una tabella sotto, ho provato il codice html e funzionava ma quando l'ho messo nell'estensione non funzionava perchèè?
questo è il codice
codice:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>scrivi</title> <script type="text/javascript"> function scrivi() { document.getElementById('contenitore').innerHTML = document.getElementById('input').value; } </script> </head> <body> <textarea id="input" cols="20" rows="5"></textarea><input value="scrivi" name="scrivi" onclick="scrivi();" type="button">
 <table style="text-align: left; width: 190px; height: 153px;" border="1" cellpadding="2" cellspacing="2"> <tbody> <tr> <td style="vertical-align: top;"><span id="contenitore"></span></td> </tr> </tbody> </table> 
 
 </body> </html>
se sapete come si fa potete dirmi anche come devo fare per far rimanere salvato il testo nell'estensione, perchè se chiuso l'estensione il teso nella tabella non rimane salvato (LO SO PERCHè HO FATTO ALTRI ESPERIMENTI)