I have an older Dell Latitude D531 laptop which powers on for about 3 seconds and then turns off.
Thinking it was an issue with the battery, I replaced the main battery of the computer. This didn't help. I read that it may be the cmos battery, so I replaced that too, the issue remains.
Before it died, there was a red battery LED indicator light above the keyboard.