I find differences between firefox and Chrome in javascript:
example:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<script language="Javascript">
function Start()
{
el = document.getElementById("ricerca");
el.disabled;
el = document.getElementById("h_ricerca");
el.value="1";
el = document.getElementById("stato_ricerca");
el.value="Ricerca in corso";
document.form.action="test_chrome.html?cerca=1";
document.form.submit();
}
window.onload = function(e) {
var querystring = location.search;
vet = querystring.split("&");
if (vet[0] == "?h_ricerca=1") {
alert("Page Started");
}
}
</script>
<title></title>
</head>
<body>
<form name="form" method="get" action="javascript:Start();">
<input type="hidden" name="h_ricerca" id="h_ricerca">
<input type="text" readonly name="stato_ricerca"
id="stato_ricerca">
<input type="submit" name="ricerca" id="ricerca" class="azione"
value="Cerca">
</form>
</body>
</html>
1) In firefox when I press "cerca" I get the alert "Page Started" in
Chrome I need to press "Cerca" twice.
2) in firefox I can write : "el = document.getElementById("ricerca");
el.disabled=true;" In Chorme the script hangs and does not work.
--~--~---------~--~----~------------~-------~--~----~
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
-~----------~----~----~----~------~----~------~--~---