html - Odd browser compatibility issue with IE/Firefox -


i have login script based on php , javascript. couldn't figure out longest time why work in chrome , safari not in firefox or internet explorer. figured out issue html, instead of having regular submit button have image submit. , changing type="image" type="submit" resolves issue. know why , if there's compatible way write following

this works:

<input name="dologin" type="submit" style="margin-left:90px;" id="dologin3" value="login">

this not:

<input name="dologin" type="image" src="login-btn.png" style="margin-left:90px;" id="dologin3" value="login">

if not going using js submit form, input type submit button should submit. if must have image in place of button, position image css setting background of button. no need change input type image. hope helps.


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 -