Logically that doesn't make sense. What if you have two users with the same username in the two domains? Do they share credentials?
Di you mean to say, "....by typing UserB instead of DomainB\UserB"?How would I make it so UserB in DomainB can authenticate to resources in DomainA by typing 'UserB' instead of 'DomainA\UserB'?