This is a very short but I believe very useful post. How do you step into javascript code that you have written for the onload / onsave event.
Make sure that your IE advanced options has 'Disable Script Debugging' unchecked. More...