...

View Full Version : Newbie here, popup bground color



mickapoo
05-09-2004, 01:27 AM
Can someone please tell me how to set the background color of a pop-up window? As you can tell, I am a complete newbie, and this is what I have thus far:

<script language="JavaScript">
<!--
image1 = new Image();
image1.src = "images/feet_MO.gif";

//End-->
</script>

Thank you!

Cheers,
mickapoo

gpopguru
05-09-2004, 02:03 AM
are you talking about an alert window or a new browser window? and your code doesn't seem to have anything to do with either...

If you're talking about an alert window (one that you just press ok) then I don't think you can change the color. A good site to learn all about javascript is www.w3schools.com

Try the tutorials, that's where I learned it. As for a new browser window, I don't exactly remember how.... here's some code that might help you.

//this will make an alert popup
alert("Type your message here")

//this will open a new window
window.open("http://www.yourpage.com")

Willy Duitt
05-09-2004, 04:44 AM
Use the forums search feature. This type of question has been asked and answered hundreds if not thousands of times.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum