D
Dmitri
Here is my simplefied example, I need that when one of radio buttons
is selected the color in original window of label "color" will became
different color. Where is my mistake?
here is code for window original window:
<html>
<head><TITLE>Help</TITLE>
<script>
var w;
function f1()
{
w=open("color.html","window2");
if(w.opener==null) w.opener=self;
}
</script>
</head>
<BODY>
<font color="#FF0000" name="lol">color</font>
<input type="button" value="new window" onClick="f1()">
</BODY>
</html>
And here is code for second window:
<html>
<head><TITLE>Help</TITLE>
<script>
var w;
function f2(form)
{
for(i=0;i<2;i++)
{
if(form.cc.checked)
{
break;
}
}
opener.document.lol.color= form.cc.value;
}
</script>
</head>
<BODY>
<form>
<input type="radio" name="cc" value="#00FF00"
onClick="f2(form)">GREEN!<br>
<input type="radio" name="cc" value="#0000FF" onClick="f2(form)">BLUE!
</form>
</BODY>
</html>
Please help.
Thanks in advance.
is selected the color in original window of label "color" will became
different color. Where is my mistake?
here is code for window original window:
<html>
<head><TITLE>Help</TITLE>
<script>
var w;
function f1()
{
w=open("color.html","window2");
if(w.opener==null) w.opener=self;
}
</script>
</head>
<BODY>
<font color="#FF0000" name="lol">color</font>
<input type="button" value="new window" onClick="f1()">
</BODY>
</html>
And here is code for second window:
<html>
<head><TITLE>Help</TITLE>
<script>
var w;
function f2(form)
{
for(i=0;i<2;i++)
{
if(form.cc.checked)
{
break;
}
}
opener.document.lol.color= form.cc.value;
}
</script>
</head>
<BODY>
<form>
<input type="radio" name="cc" value="#00FF00"
onClick="f2(form)">GREEN!<br>
<input type="radio" name="cc" value="#0000FF" onClick="f2(form)">BLUE!
</form>
</BODY>
</html>
Please help.
Thanks in advance.