< HEAD>
< SCRIPT LANGUAGE="JavaScript" type="text/javascript>
< !-- Begin
newWindow = window.open('','newWin','toolbar=yes,location=yes,
scrollbars=yes,status=yes,width=630,height=400')
The above line was broken in two for display purposes only!
newWindow.document.write
("<HTML>
< HEAD>
< TITLE>window!</TITLE>
< /HEAD>
< BODY bgcolor='#FFFFFF' text='#000000' background='../Images/RoughGrey.gif'>
< DIV ALIGN='center'>
< H1><font color='#990000'>This is pretty cool stuff!</font></H1>
< IMG SRC='../Images/HouseOfWacks.jpg' width='535' height='268'>
< /DIV>
< /BODY>
< /HTML> ")
newWindow.document.close
// End -->
< /SCRIPT>
< /HEAD>
OR
Refer :
http://webwonks.org/WebBuilding/PopupWindows.html[
^]
go to "Creating ad hoc pages and filling them with HTML" and check live example.