dopo una giornata "spesa" a documentarmi in giro per la rete...credo di esserci riuscito
sembra funzionare...codice:<html> <head> <script type="text/javascript"> function fai_replace() { var body,bodyv; body=document.getElementsByTagName('body')[0]; bodyv=body.firstChild; bodyv.nodeValue=bodyv.nodeValue.replace(/ciao/gi,'salve'); } if(document.getElementById && document.createTextNode) { window.onload=function() { fai_replace(); } } </script> </head> <body> testo ciao fine </body> </html>
voi cosa ne pensate? è migliorabile?
ciauzzz e grazie ancora

Rispondi quotando