I am a newbie with javascript and I am struggling with the syntax. I write mostly PERL and I am finding javascript quite a challenge. I am used to OOP but the references within Javascript have me confused.
I have created a window with window open.
I want to make the background colour of the new window, the same colour as a cell in the old window.
I have looked into the 'opener' function but have yet to find a reasonable explanation of the syntax.
I need something like
this of course is only a guess at the correct syntax.
I have tried many similar options but I am struggling.
Would someone please help.
Keith
I have created a window with window open.
I want to make the background colour of the new window, the same colour as a cell in the old window.
I have looked into the 'opener' function but have yet to find a reasonable explanation of the syntax.
I need something like
Code:
document.bgcolor=window.opener.[coloured cell name].value
I have tried many similar options but I am struggling.
Would someone please help.
Keith