but apparently this doesnt work any help on this would be appreciated. i have a feeling that because its an iframe you cant reference and change its content from the main screen. but i hope im wrong. cheers
cheers purple will try it later but i think i tried the getbyid thingy and it didnt work. I think because its on a different page it wont set the attributes. gonna have to think of another way of doing it. thanks for your help gents but if anyone has done this and it has worked for them please tell me so i can save me some programming time. thanks again
tedster they are both pages i have created. the iframe is not sourced anywhere. i have created all the pages including the iframe... i think thats what you meant by same domain. in anycase i dont think the domain of the page matters as long as you can reference it the way it needs to be referenced.
The getElementById thing should work. Note that the spelling of the word getElementById is case-sensitive. If you get one letter wrong (upper or lower case) it won't work. It's very common for people to accidentally use an upper case D at the end which causes much frustration. It's even misspelt in some reference books.