Hello,
I have the following code:
however it doesn't display the message like it's meant to.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>
If i replace
withCode:document.write(product(192.168.0.15,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.Code:document.write(product(192.168015,60,20));
Does anyone have any ideas how to fix this or know what I am doing wrong.
Thanks.




Reply With Quote