I am trying out the script given in the solution here shown here:
I noticed that after selecting a button then when refreshing a page it will try to recall the last command. However, this doesn't happens on inital page load.
For example, once I loaded up the page and add a record then when I refreshed the page it will try to add the record again.
I cannot seem to pinpoint why this is happening and how to correct it. Hope someone can shed some light on this and provide a solution.