Avatar

Level 10

Put focus on the button. Now go to the script editor (usually right above the form). If it is not visible goto the Window/Script Editor menu and enable it (you may have to resize the editor to get more real estate to do things). Now you can choose an event to put your code on (top left of the editor), and a language (top right). For a button use the click event and use Javascript for the language. Now simply enter the code that you want. If you right click you can turn on line numbers (this might make it easier to see where you are. When you look at the event dropdown - if there is code behind an evnt it will be designated with an *.

Hope that helps

Paul