Javascript href onclick open new window

Javascript code to open new window: window.open(“http://www.google.co.in”) – opens google.co.in in new window. window.open(“http://www.google.co.in”,”My window”) – My window is the name of the new window. Javascript code to close the current window: window.close() – close the current opened window. It will ask the popup confirmation. Javascript code to close without popup confirmation: window.open(”,’_self’); window.close(); window.open(“http://www.javadomain.in”); // It wont allow to

» Read more