I have 2 pages in a frameset, in the first page i have a Javascript Function, the second is an asp.net form with a button, the thing is that I need to call the Javascript function in the first page when user clicks the button:
I'm trying with:
ClientScript.RegisterStartupScript(this.GetType(), "myScript", "<script language=JavaScript>parent.frames[0].Function('parameter')</script>");
There's an alert('...'); in the function but when I call it I don't see anything, apparently the function isn't executed.
¿How can I call the function? Thanks for the help & advises.