fpoyavo
asked on
run function
Hi Experts,
I have JSP page within IFRAME and need to execute Javascript located in main page when some key is pressed. How ?
Thank you.
I have JSP page within IFRAME and need to execute Javascript located in main page when some key is pressed. How ?
Thank you.
ASKER
The problem is that this is function using elements of the main page. May be You know how to access elements of the main page from IFRAME ?
Thank you.
Thank you.
oh yeah thats easy...:-)
parent.document.getElement Byid("elem entName");
or
ParentFrameName.document.g etElemenet ById(""ele mentName") ;
parent.document.getElement
or
ParentFrameName.document.g
ASKER
almost correct.. should be top.document.getElementByI d('element Name').val ue.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
is it a inline function or its a function thats written in a .js file and js file is included??