Opening a New Window. 21. A Main Window Document. html>. or we can try this. Page load.open a new jframe on a button click. OnClick of button in showModalDialog, it opens new window? This code doesnt offer what I needit opens the link in a new window. If you actually tried this codePlace your cusor just after the last "w" in NewWindow, press the backspace 9 times. no new window. HTML 4.01 Target attribute specifications. How do I create a link that opens a new window?Coding carelessly to open new windows can no longer be assured of success, can not succeed by force and, if it does, it will annoy a majority of users. a onclick"openwindow(file.