title: how to disable all the clicks made by the user if click is made outside the modal dialog
body: <p>in my current project i am opening a modal dialog that opens on click of a button,
  now if the user clicks anywhere outside the modal dialog the click should be ignored by the browser and the modal dialog should get focused, how can this be achieved?</p>