Menu
Please guys, i cannot understand why this code returns false…its realy simple but i cannot get why it gives me false! please help!?
///////////////////////////////////////////////
<html>
<body>
<script type=”text/javascript”>
var frase=document.getElementById(‘text’);
var check=new RegExp (“tutti”);
var risultato= check.test(frase);
</script>
<p id=”text”>di a da in con su per tra fra ciao tutti</p>
<form name=”bottone”>
<input type=”button” value=”check?” onClick=”alert(risultato)” />
</form>
</body>
</html>
Thank you guys