How do I create a pop-up window?

Question

What is the HTML for a pop-up for instance, on my custom site on geocities.com, if i wanted a pop-up to come up for www.datadoctors.com, then what would the HTML be?

Answer

This question was answered on September 9, 2003. Much of the information contained herein may have changed since posting.

Put the following code in your <HEAD> tag.

like this:

<HEAD>

<SCRIPT LANGUAGE="Javascript">

function newwin()

{

window.open("http://www.datadoctors.com","HTML4ME","toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizeable=0,width=540,height=396")

}

//-->

</SCRIPT>

</HEAD>

Put the following in your <BODY> tag.

like this:

<BODY onload="javascript:newwin();">

Need Help with this Issue?

We help people with technology! It's what we do.
Schedule an Appointment with a location for help!

Author

Posted by Student of Katharine Gibbs School - New York on September 9, 2003