Look for printing which says either spt 1. Pin1 of both the switches are connected with the phase or live wire and pin2 of both the switches are connected with the one end of the lamp.

Wiring Of An In Line Table Lamp Switch
How to wire a lamp switch. Some switches only require you to connect the hot wire. Feed a length of 14 3 type nm cable or 12 3 if youre connecting to 12 gauge wire between the two boxes. Connect the wires to the new 3 way switches with ground screws using one of the two wiring diagrams fig. Examine your new switch to see which wires you have to cut. The white or neutral wire bypasses the switch and goes straight to your lights. The other end of the lamp is connected with neutral line of ac power supply.
Replacing a cord switch 1. Remove the existing cord switch. White black and red plus a bare ground wire. The switch serves to cut the power from reaching the light switch. Unplug the lamp before you start the repair. Press the switch halves together and tighten the switch screw.
Wiring a push button lamp switch here a 2 way push button switch is wired to a lamp with 2 bulbs. Look for printing on the lamp cord to determine the size switch you need. The 14 3 cable has three insulated conductors. A standard single pole light switch will simply require you to attach the black load wire into it and then the black wire leaving the switch and to your lights. The hot wire from the cord is connected directly to the black wire on the switch and the neutral is spliced to the neutral contact on each bulb sockets. As you can see in the schematic diagram of 2 way switch circuit below the common of both the switches are short circuited.
Insert the cord into the wire channel on the switch bottom. This diagram can be used to rewire an old push button lamp with a new switch replacement.