Click to See Complete Forum and Search --> : How do I make a Java Pop-Up


Soa
04-01-2003, 02:37 PM
How do I make a JavaScript Pop-Up when using Geocities. I know it's pathetic that i have to use it but I'm too lazy to type out everything. Someone please help me.:confused:

havik
04-01-2003, 04:31 PM
I'm not exactly sure what you mean but the following code will have geocities in a pop up window.

<script language="JavaScript">
function popup() {
window.open('http://geocities.yahoo.com/', '','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=455 ,height=362,left=100,top=100');
}
</script>

<a href="Javascript:popup">Geocities</a>

Havik

Soa
04-01-2003, 05:26 PM
i meant when using geocities page builder, what would be the code to make a pop-up that would work automatically, and would open a new webstie in a new window. The address I want it to open to is http://www.outwar.com/page.php?x=611848.

Jona
04-01-2003, 05:38 PM
Using Pagebuilder? I doubt that PageBuilder has that functionality. You need to go in and use the Advanced HTML Editor. Just add this in between the <HEAD> and </HEAD> tags:

<SCRIPT>
function popup(){
window.open("http://www.outwar.com/page.php?x=611848");
}
</SCRIPT>

And then in the <BODY> tag, add this attribute:

<BODY onLoad="popup();">