Jump to content

Document.getElementByID


harshpandya

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...