Firefox simple form element with inner html bug -


if below code opened in firefox 20.0.1 , type value in text box. once after typing value hit browser refresh button. typed value getting shifted 1 input elelment another.

<html> <head>     <script>         function searchpageloader(){             document.getelementbyid('searchareaa').innerhtml='<label ></label>';         }     </script> </head> <body onload="searchpageloader()">     <div id="searchareaa"></div>     <input type="text" id="pagecount" value="5"/>     <input type="text" id="startlimit" value="11"/>     <input type="text" id="endlimit" value="5"/> </body> </html> 

it happening in firefox , and if innerhtml . work around this, spoiling of application workflow.

if surround form controls (including div new label) <form></form> tags, strange behavior disappears. see https://support.mozilla.org/questions/959372


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -