Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript_howto thread: how to: dynamic OnLoad page


Message #1 by "kriz buenaventura" <vickriz@i...> on Tue, 19 Nov 2002 05:23:17
hi to all, i have this code.

----script---
function popupWin() {
text =  "<html>\n<head>\n<title>Splash Window</title>\n";
text += "<body>\n";
text += "<center>\n<br>";
text += "<a href='http://javascript.internet.com/new' 
target='_blank'><h2>Polmap Encoding</h2></a>";
text += "</center>\n</body>\n</html>\n";
setTimeout('windowProp(text)', 2000); 		
}
function windowProp(text) {
newWindow = window.open
('','newWin','left=450,top=300,width=500,height=400');
newWindow.document.write(text);
setTimeout('closeWin(newWindow)', 7000);	
}
function closeWin(newWindow) {
newWindow.close();				
}

---html----
<body onLoad="popupWin()" bgcolor="white" text="black" link="blue" 
vlink="purple" alink="red">
<p> sometext here...</p>

--end--

now my prob is how can i insert a script function inside that popupWin()?


  Return to Index