How to add dom in lib?

Cannot find name 'document'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'. 
I get this message what to do or how to do it?