Setup TV as extended display for my laptop

I want to hook up my TV as a second monitor for my Dell laptop with a dual display setup. I want the second monitor as an extended display. My laptop only came with onboard graphics, will it be able to support that kind of setup? Which connection should I use, the VGA or DVI?
