1 the top cover 31 has an elastic piece 311 elastically pressing down the pin member 43 preventing the pin member 43 from jumping out of the heart shaped slot 4110 of the slider 41 the metallic shell 3 has a length commonly twice larger than that of the insulative housing 1 and accordingly the mating component doesn 39 t get to the insulative housing 1 until the mating component moves a rather distance along the mating direction the top cover 31 and the bottom cover 32 of the metallic shell 3 cooperatively define a receiving space 38 for the mating component an insertion port 37 is formed at the front of the receiving space 38 when the mating component is inserted into the receiving space 38 and pushes the transverse portion 412 of the slider 41 the slider 41 moves rearward and presses against the spring elements 42 such that the spring elements 42 have elasticity the pin member 43 is positioned at an inner position and signals are transmitted between the mating component and the contacts 2 when a user pushes the mating component again the pin member 43 moves away from the inner position and back to an outer position elasticity of the spring elements 42 is released and the mating component is ejected out of the electrical connector 100 in the present invention because the ejector 4 is assembled at a rear part of the insulative housing 1 taken along the mating direction the ejector 4 takes inner room of the electronic product and saves spaces in width the electrical connector 100 facilitates the electronic product for assembling more other i o connectors furthermore the mating component inserted in the electrical connector 100 is balancedly easily ejected by the ejector 4 while a preferred embodiment in.