How can i call a simple function in Javascript, for example:
function doSmt() {
alert("hello world")
}
whenever the user is going to resize the window in any way. So if he for example just resize it with the mouse, or if he zoom into or out the website.
I already tried:
window.onresize = doSmt()
as it stands on some websites, but that doesnt work.