0
What's the difference between window.alert() function and the alert () function in javascript.?
Javascript
4 Antworten
+ 3
None. alert, among many other functions are from the window object, but browsers allow you to call it without referencing the window object.
+ 1
Got that.. Thanks much... That means there are other windows objects...
0
It is basically the same function. Difference is that in window.alert() call, it is called using the object whereas in alert(), it is explicitly called.
0
Not really, theres always only one window object, but it changes depending on the browser