By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,603 Members | 1,072 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,603 IT Pros & Developers. It's quick & easy.

Change popup background color

P: 2
Hello I am new to java, and I can not get my stuff to work. For my defense i had the worst teacher ever, and I am trying to learn by myself!!!! I am trying to have a pop up menu with a set width height and background color, which would display a picture. This is what I have so far:

function newWindowDanceGallery(gallerygif) {
galleryWindow = window.open(gallerygif, 'galleryWin','width=500, height=400')
galleryWindow.document.bgColor="#ff0000"
galleryWindow.focus()

but the color does not work????

Can someone help me please
Feb 17 '07 #1
Share this Question
Share on Google+
5 Replies

drhowarddrfine
Expert 5K+
P: 7,435
Just to clairfy but Java is not javascript. What you are doing is javascript.
Feb 17 '07 #2

P: 2
Just to clairfy but Java is not javascript. What you are doing is javascript.
thank you for the clarification. That one I knew, but we always say java in class for shorter purpose.
Feb 17 '07 #3

drhowarddrfine
Expert 5K+
P: 7,435
You should get them to stop. I am not the only one who will correct you and it will only lead to confusion, including those who will give you a very hard time about it.
Feb 18 '07 #4

iam_clint
Expert 100+
P: 1,208
ok so i used your code and it works fine?
Feb 18 '07 #5

acoder
Expert Mod 15k+
P: 16,027
Changed title from "New to java".
Feb 19 '07 #6

Post your reply

Sign in to post your reply or Sign up for a free account.