結果 : check if form submitted javascript