Click to See Complete Forum and Search --> : pop up window


chuxs
11-07-2003, 09:10 AM
i hope what am asking for is possible.

i will like to create a pop up window onload of the window but i dont want to specific a file in the javascript code i.e window.open('') and be able to use the document.write method dynamically on the pop up window to create an hyperlink

AdamGundry
11-07-2003, 09:18 AM
You shouldn't really be using popups, but here goes...


function myPopup(){
w = window.open('about:blank');
w.document.write('Some html');
w.document.write('<a href="http://www.example.com">A hyperlink</a>');
}

<body onload="myPopup()">

Adam

96turnerri
11-07-2003, 09:18 AM
you want an array that randomly picks a hyperlink out of the ones you have programed into the array?

chuxs
11-11-2003, 08:25 AM
Thanxs Adam

i just imlpemented the code and its working well