harshpandya Posted February 29, 2008 Share Posted February 29, 2008 Hi All,Do we have Onclick command here: Because i want to check if user clicks on the button (which is in the parent) if they click run function f(); window.parent.document.getElementById("div2")._ _ _ _ _ _ run function f();basically i want to check in Javascript file whether my button was clicked in PHP filePlease help,Thanks, Link to comment Share on other sites More sharing options...
jeffman Posted February 29, 2008 Share Posted February 29, 2008 I'm pretty confused. Maybe you'll get the results you want out of this: document.getElementById("div2").onclick = function (event) {tsup(this.id, event || window.event)}; function tsup (id, evt){ alert (id + " registered a " + evt);} Link to comment Share on other sites More sharing options...
justsomeguy Posted March 4, 2008 Share Posted March 4, 2008 You might be looking for this also:window.parent.document.getElementById("div2").onclick = f; Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.