set bgcolor in window.open or document.write or...

N

Nat

Hi I have following code:
-----------------
protected override void Render(HtmlTextWriter w)
{
if (helpString!=null)
{
w.Write("<span class='tooltipiconouter'><img title =
'"+this.helpString+"' class='tooltipIconInner' align='center' src =
'../Lib/images/questionmark.gif' a href='#' onclick = 'myWin =
window.open(\"\", \"\", \"width=300, height=200, directories=no\");
myWin.document.write(\"" +helpString+"\");'></a></span>");
}
}
-----------------

Now I want to change the bgcolor in the window that opens, what and
where do I have to write that?

I've tried myWin.document.bgcolor=#333333 but either it doesn't work,
or it is because i'm writting it in a wrong place.

Please help

Nat
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,576
Members
45,054
Latest member
LucyCarper

Latest Threads

Top