View Full Version : Multiple action done by a clicked button

06-22-2009, 10:58 AM
Hi every

I need a help.
I have window containing a field.
I was looking for a way to copy the value in the field and at the same time close the window.

For copying i use this onclick="return copy_clip(document.forms[0].num_alladaid_{num_allada:rowNumber}.value) it worked perfectly.

To close window i cleaned the copying code and insert this : 'javascript:window.close();' it worked perfectly too.

But i don't know how to put the 2 codes in one line so that on click the button will copy the field value and close the window

Philip M
06-22-2009, 11:38 AM
onclick="return copy_clip(document.forms[0].num_alladaid_{num_allada:rowNumber}.value);window.close();"

All advice is supplied packaged by intellectual weight, and not by volume. Contents may settle slightly in transit.