I already have a dialog box defined using div tag that I need to display when the user tries to leave the page.

How can I accomodate the existing dialog box in the LeaveNotice jquery plugin? I do not find particularly this situation via googling and I am unable to find it via trial and error also.

Kindly instruct.