0

window.onload="clear()" - why clear() functuon is not a string?

15th Jan 2017, 8:46 AM
Evgeniy Poznyak
Evgeniy Poznyak - avatar
3 Respuestas
+ 10
window.onload = function(){clear();};
15th Jan 2017, 9:12 AM
Valen.H. ~
Valen.H. ~ - avatar
+ 4
Try window.onload=clear
15th Jan 2017, 12:48 PM
Caffeinated Gamer YT
Caffeinated Gamer YT - avatar
+ 2
Is that even a valid syntax?
15th Jan 2017, 9:07 AM
David Sebastian Keshvi Illiakis
David Sebastian Keshvi Illiakis - avatar