大侠看看我的代码错在哪里?为什么输出的计算结果老是 NaN ?

<p> <input name="int1" type="text"> </p> <p> <input name="int2" type="text"> </p> <p> <input type="submit" value="提交" onClick="js ()"> </p> <script type="text/javascript"> function js () { alert ( document.getElementsByName("int1").value * document.getElementsByName("int2").value) } </script>