If the battery light is on and you're still driving the car, turn off as many electrical accessories as you can, such as the stereo, air conditioning or heater, and avoid using electrical controls such as power windows. Reducing the amount of electricity the car is consuming will increase the distance you can drive before the battery is discharged. Get to a mechanic as quickly as possible, and have the battery, wires and charging system checked out to find the cause of your problem and what you need to repair or replace.
Here's what causes this: A blown fuse for the system, A wheel-speed sensor that is damaged or covered by road grime, A broken wire between the sensors and the ABS controller, An ABS controller that has stopped working. A pump and valve that apply the right amount of brake fluid pressure to each wheel to prevent locking can also trigger an ABS sensor warning light when those items go bad. If the red warning light for the regular brakes comes on, that typically means your vehicle is losing brake fluid or the brakes are so worn that you don't have normal stopping power. Either of those situations warrants immediate attention and possible repair work.
If your motor is functioning properly but the window is not responding, you may need to replace your regulator. Remove the bolts that attach the regulator to the glass. The regulator is the lift assembly that moves your window up and down. You will have to move the window up or down to align these bolts with a hole in the door interior. Using an extension on a ratchet, you will put a socket (usually 8 or 10 mm) through the hole and loosen the two bolts. Push the window all the way up. Use your hands to push the window up, and then either fasten it with tape or pull it out of the door altogether.
You can also perform the test yourself if you have access to a Battery Load Tester, a device which is made for the purpose. The load tester works by placing a specific amount of electrical load on the battery for a specific amount of time while monitoring the available battery voltage. The battery should be fully charged before the test in order to insure accurate test results.