Page 1 of 1

find function parameters

Posted: Mon May 26, 2008 11:47 pm
by devendra-m
I have a page which popups new window when the button is clicked. Popup window also have some buttons which calls a function when those buttons are clicked. Now I have to catch onclick event(occured in popup window) in the parent window and find out the function parameters. I am doing this so that I don't have to modify javascript code in popup window.

Re: find function parameters

Posted: Tue May 27, 2008 12:10 pm
by kaszu
I didn't understood, how are you catching onclick events? What do you expect to get?
Anyway, inside each function is available variable "arguments" which has all 'parameters'.