186
rated 0 times
[
187]
[
1]
/ answers: 1 / hits: 30686
/ 12 Years ago, mon, november 19, 2012, 12:00:00
What is the difference between alert()
and window.alert()
functions? It seems to work the same.
More From » javascript
What is the difference between alert()
and window.alert()
functions? It seems to work the same.
Because window
is the global object, you can call an alert
either by it's shorthand: alert( 'Hello!' );
or by referencing the global object specifically: window.alert( 'Hello!' );
They are the same.