Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
66
rated 0 times [  68] [ 2]  / answers: 1 / hits: 55416  / 14 Years ago, mon, august 2, 2010, 12:00:00

How can I create a custom alert function in Javascript?


More From » javascript

 Answers
35

You can override the existing alert function, which exists on the window object:



window.alert = function (message) {
// Do something with message
};

[#96043] Friday, July 30, 2010, 14 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
lesli

Total Points: 348
Total Questions: 105
Total Answers: 119

Location: United States Minor Outlying Island
Member since Fri, Jan 6, 2023
1 Year ago
;