Even if a plug in hanging lamp is where you want it built in wiring is safer more convenient and easier on the eyes.
How to install a wall switch for a ceiling light.
From what has been described in this question it appears that a neutral wire is not available at the wall switch.
After removing the black wire to the fixture s lead splice it into the new white wire.
Got light where you need it.
Common applications include ceiling or hallway light switches a cellar or attic light a ceiling fan or chandelier or an outdoor patio light.
Drill through the floor in the correct stud bay and send the wires for the switch and the light up to the switch using the fish tape.
How to add a wall switch to a light fixture that is turned on and off by a chain cord decide where you want to place your switch.
Pick a single pole light switch for most applications.
Mark this wire black.
Installing additional light fixture and switch wiring should be done according to local and national electrical codes with a permit and be inspected.
Install a ceiling light and switch.
Carefully push the wiring into the wall area along with the attached switch.
Screw the switch into the wall with a screwdriver and supplied screws.
To wire the ceiling fixture to the new wall switch first connect the copper grounding wire to the fixture.
No house seems to have exactly the right lights in the right place with convenient safe switches.
Screw the switch into the box and then cover it with the cover plate.
Then splice the fixture s black lead into the new black wire.
Generally wall switches are on the right hand side a few feet metres past the door opening.
12 screw the cover plate back onto the wall with.