window.createPopup question....

B

bb98

I am creating a popup in javascript using the following script... it
reveals itself by the show() method. It sends it away by clicking
somewhere outside the popup window.....


var oPopup = window.createPopup();
var oPopupBody = oPopup.document.body;
oPopupBody.style.backgroundCol... = "magenta";
oPopupBody.style.border = "solid blue 3px";
oPopupBody.innerHTML = "Click outside <B>popup</B> to close.";
oPopup.show(300, 80, 200, 50, document.body);


but now I want to send it away from a particular action ... e.g.
oPopupBody.innerHTML = "<a href=".....">Click here to close the
popup";

what command do I use? - .hide? .close ? what is it?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,156
Messages
2,570,878
Members
47,408
Latest member
AlenaRay88

Latest Threads

Top