So i have the following line of code:
document.myForm.elements['Last'].style.backgroundColor='#eeeeee';
which changes the input field's background in my form to light gray. However now I need to add this button that when you press on it, it changes everything back to normal.
So I did this...
Hi,
I've been trying to figure out a way to change the background color of the input in an html form using javascript. Heck i even tried to figure out how to do it in html and no luck! :S
So far this is what I've tried...
Your javacode needs to be under onclick, instead of href. Try this:
<a href="http://www.pmmoto.com/showroom.php?page=1"
onclick="javascript:window.open('incs/large_Image.php?page=1','LargeWindow','top=0,left=0,width=640,height=480,resizable=yes,status=no,toolbar=no,menubar=no')"><br>
<img...
That didn't work. :/ I hate IE. Any other sugguestions?
I thought I'd cheat and actually try to change the background color of the input field, but couldn't figure that out either!
Great! it works! It doesn't allow the cursor in the input field, which is what i want. However, it doesn't shade it grey like the other browsers do. It looks exactly the same, only it doesn't allow the cursor on it.
I can see this as being annoying to any user using the system. Having the...
Hi!
I'm using Javascript to make a form's input read only. I basically open a child window, and then the child window provides it value them makes it readonly. I passes on its value correct, however i can't seem to get the input greyish/readonly.
This is the command I use:
//works on IE! :)...
hi! :)
i have a question. So here's the situation, i have an html file with a form. I have named the text inputs in the form, 'First1', 'First2', First3', .... since you don't know how many first names you can have. you can keep generating them.
Anyway, that's not my problem. In order to keep...
Is there something similar to the Java API on the Java website which lists all the function and attributes of all the different objects??
I have the O'reilly book, but that doesn't help much in alot of the cases. And Google isn't of much help either.
Thanks. :)
Hi,
So here's my problem. I wrote a program that opens a child window. I get data from the child window and output the value in an form's input value field in the parent window, like this:
window.opener.document.myForm.elements[i].value = data;
This works. Now, my question is I want the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.