Hi,
I am designing an asp.Net page. I am using IE tabstrip. When user clicks on each tab, I call a IFrame with src = "ChildWebForm.aspx"
<iframe name= "IFrame1" id = "IFrame1" src="ChildWebForm.aspx" frameborder="0" width="100%" height="700px" scrolling="no"></iframe>
Now I am adding controls to My ChildWebForm. I added a few radio buttons. And I want to write some javascript.
I tried,
var doc = document.frames('IFrame1').document
If(doc.getElementbyID("radiobutton1").checked == true)
{alert ("I have clicked radiobutton1")}
This gives me an error.
How do I access the controls within the Iframe of my document?
I am designing an asp.Net page. I am using IE tabstrip. When user clicks on each tab, I call a IFrame with src = "ChildWebForm.aspx"
<iframe name= "IFrame1" id = "IFrame1" src="ChildWebForm.aspx" frameborder="0" width="100%" height="700px" scrolling="no"></iframe>
Now I am adding controls to My ChildWebForm. I added a few radio buttons. And I want to write some javascript.
I tried,
var doc = document.frames('IFrame1').document
If(doc.getElementbyID("radiobutton1").checked == true)
{alert ("I have clicked radiobutton1")}
This gives me an error.
How do I access the controls within the Iframe of my document?