Using JavaScript I'd like to get the domain value for a specific cookie.

Is this possible? If so, how?

To clarify: I'm not looking for the value of the cookie. I'm on subdomain.example.com and I need to remove a cookie whose name is known but its domain value is something like .example.com. In short: I'd like to get the value of .example.com.

Edit
Report