winfo is a TK command. You'll only use this for desktop applications written in tcl/tk.
Furthermore, TCL runs on the server-side and javascript on the client-side. Therefore you'll be able to work out the screen width etc using javascript, but you won't be able to do so with TCL.