find function parameters

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
devendra-m
Forum Contributor
Posts: 111
Joined: Wed Sep 12, 2007 3:16 am

find function parameters

Post 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.
User avatar
kaszu
Forum Regular
Posts: 749
Joined: Wed Jul 19, 2006 7:29 am

Re: find function parameters

Post 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'.
Post Reply