Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 05-09-2004, 12:27 AM   PM User | #1
mickapoo
New to the CF scene

 
Join Date: May 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
mickapoo is an unknown quantity at this point
Newbie here, popup bground color

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
mickapoo is offline   Reply With Quote
Old 05-09-2004, 01:03 AM   PM User | #2
gpopguru
New Coder

 
Join Date: Apr 2004
Location: PA
Posts: 51
Thanks: 0
Thanked 0 Times in 0 Posts
gpopguru is an unknown quantity at this point
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.
Code:
//this will make an alert popup
alert("Type your message here")

//this will open a new window
window.open("http://www.yourpage.com")
__________________
The Guru says:
Shiranu ga hotoke
Ignorance is bliss

My site >> www.mygpop.net
Home | My Blog | Forums | Art | Stories | Quizzes | What is G-POP? | Links
gpopguru is offline   Reply With Quote
Old 05-09-2004, 03:44 AM   PM User | #3
Willy Duitt
Banned

 
Join Date: Sep 2003
Posts: 3,620
Thanks: 0
Thanked 0 Times in 0 Posts
Willy Duitt is an unknown quantity at this point
Use the forums search feature. This type of question has been asked and answered hundreds if not thousands of times.
Willy Duitt is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:31 AM.


Advertisement
Log in to turn off these ads.