confirm
confirm
JavaScript Confirm Action Dialog
Wed, 09/02/2009 - 19:34 | by philipnorton42If you want to create a link that performs an action that can't be rolled back then you might want to stop the user from clicking that link unless they really want to. The best way to do this is to intercept the link with a confirm() command.
The first way to do this (and especially useful if you want to ad other functionality) is to use the following function.
Irritating JavaScript Virus Message Popup And Redirect
Wed, 02/11/2009 - 11:17 | by philipnorton42The other day I was approached by a friend who had this odd looking virus message on their screen. They said that they hadn't been doing anything in particular, just writing an email and surfing the net in Firefox when all of a sudden this pop-up appeared on screen and told them they had a virus.