I was working on a 90's style html calculator. It seems my calculator works fine when I try it in the "result" (the window next to the code).

But when opening it in a new tab the page is shown visually but the calculator dosn't work at all.

this is the link: