Hello,

I have the following code:

Code:
<html>
<head>
<script type="text/javascript">
function product(ip,value1,value2)
{
alert(ip + "ghb"+ value1 + value2);
}
</script>
</head>

<body>
<script type="text/javascript">
document.write(product(192.168.0.15,60,20));
</script>

</body>
</html>
however it doesn't display the message like it's meant to.

If i replace

Code:
document.write(product(192.168.0.15,60,20));
with

Code:
document.write(product(192.168015,60,20));
it works. As there is only 1 dot in the parameter for the IP Address. Soon as i put an extra dot it doesn't work.

Does anyone have any ideas how to fix this or know what I am doing wrong.

Thanks.