I am using a window.open to open a new window. Just recently I decided to use the name I have given to new window and focus it but I get "not defined problem." I get "theName not defined" error and ofcourse it doesn't work as I expect. Any idea how to solve this and make the new window focused?