Dispatching Events IE

Click on page to create boxes or click on button to simulate the event.