Originariamente inviato da \\Lup3n
il seguente script su ie 6.0 mi da un avviso di protezione javascript
e' il mio browser che e' settato male o e' lo script potenzialmente pericoloso?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<script>
function cambialingua(lang)
{
if(lang=="it")
{
document.getElementById('scrittaemail').innerHTML = 'questo e\' il testo italiano';
document.getElementById('password').innerHTML = 'metti la tua pass:';
}
if(lang=="en")
{
document.getElementById('scrittaemail').innerHTML = 'witch witch witch';
document.getElementById('password').innerHTML = '
witch witch witch pass:';
}
}
</script>
<body>
<form>
<font id="scrittaemail">la tua email:</font> <textarea name="" cols="" rows=""></textarea>
<font id="password">la tua password:</font> <textarea name="" cols="" rows=""></textarea>
</form>
it -
en
</body>
</html>