Heres my simple html source
<html>
<head>
<title>
Dec2Bin
</title>
<script type="text/javascript">
function app()
{
var decimal = prompt("Numero en Decimal");
alert("El numero " + decimal + " en codigo binario es igual a " + dec2bin(decimal));
}
function dec2bin(decimal)
{
var binario="";
while(decimal!=0)
{
if(decimal % 2==0)
{
binario+="1";
}
else
{
binario+="0"
}
decimal=decimal/2
}
return binario ;
}
</script>
</head>
<body>
<input type="button" onclick="app()" value="Procesar" />
</body>
</html>
Avg keeps telling me its a virus.. if I remove the javascript it stops... what can I do?