Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    May 2004
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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

  • #2
    New Coder
    Join Date
    Apr 2004
    Location
    PA
    Posts
    51
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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

  • #3
    Banned
    Join Date
    Sep 2003
    Posts
    3,620
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Use the forums search feature. This type of question has been asked and answered hundreds if not thousands of times.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •