I got this error in console because I was sending data with commas through get parameter in the PHP page.
If you want to split every letter then leave first parameter empty.
Or using history.forward() method
Use location.reload() or window.history.go(0) to reload webpage. Or use reload() method