If you don't want that, don't use alert. Which you shouldn't anyway. It is generally recommended not to use alert or prompt, but to use DOM methods instead. Imagine you are a user on a site and if you change something, you get these annoying alert notifications all the time. It's not a good user experience. Show a little text next to what changed, open up a little tooltip kind of notification, etc. pp. There are many ways, but alert is not a good one.