i have the following javascript codes. they work on chrome but a bit weird on safari:
document.myform.submit();
tried to debug and found that it stopped at the above line for safari. but interesting is that after reloading the page the page asked if i'd like to save password. then re-running the codes and everything worked again
so i tried to rewrite the codes as below:
document.getElementsByName("myform")[0].submit();
and it worked without any problem.
for the first method, it's been used for many years and didn't have any problems. but curious whether it's caused by recent updates to the safari