I'm making a simple page with HTML5 and javascript, but I'm having trouble with the autocomplete attribute not working outside of Chrome.

I think that the cause is probably because I did not submit by submit, but since the form submission destination does not exist, I can not add submit.

Is there any way to get autocomplete to work without submit?

Below is the source of the relevant part.

<form autocomplete = "on">
  <input type = "text" name = "name" autocomplete = "name">
function nextClick () {
    // Processing input value