結果 : how to detect input in javascript