Code:
<s.cript language="Javascript">
function showit() {
PopUp = window.open("", "MyNewPopup", "dependent=1,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,width=200,height=100,top=15,left=15")
PopUp.document.write ("<form><INPUT ONCLICK=\"window.opener.location.href='http://www.microsoft.com'\" type=\"button\" value=\"Goto Microsoft\"><INPUT ONCLICK='window.close()' type='button' value='Close Me'></form>")
PopUp.document.close()
if ( window.setTimeout )
window.setTimeout("PopUp.focus()", 250)
return false
}
</s.cript>
<form><input onclick="showit()" type="button" value="show it"></form>
I think this is what you want. Throw that code into a test.html file, and fix the spelling on the script tags to test it. When you open it, you'll have one button to show a popup window. The popup window has 2 buttons. One closes it, the other makes the main(parent) window that opened it go to microsoft's site. There ya go.
Here goes a starter for beginner's level: http://www.chalcedony.com/javascript/scripts/index.html
Bookmarks