Running a GUI without GUI

I was wondering if it is possible to run a GUI window (say Firefox) without actually showing up the window on the desktop but still make it do its own regular stuff (like maybe do something via the command line). Sorry if its a dumb question.

Thanks

I don't know if setting the DISPLAY variable to /dev/null before running Firefox might achieve what you want (web pges html and pictures in the user's firefox cache directory)?

Perhaps using a command line browser would be better? e.g. WWW - The Libwww Line Mode Browser

lynx is a text based browser.

Thank you for your replies. I was in fact looking at the extension capabilities of firefox in doing certain things with ease... I tried exporting the display to null but it says Error in opening the device... Do you have any other suggestions by any chance?