Your code is right, it's w3schools.com that's the problem. Opening up the developer console reveals this:
確定! 回上一頁