If its one of the early imacs 233,266 etc it could be the monitor side. I have a 233Mhz version that would not power up correctly.But after disconnecting the monitor cable (inside the case)from the logic board.
Then connecting the Logic Board to an external monitor the imac powered up and stayed on and the imac video was shown on external monitor .Proving the fault was on the monitor side.