Car has not been started for a while.. (embarrased Emoticon)

Flat battery...alarm making chirp every two seconds....
Ok... disconnect battery to charge.... alarm goes of !!! of course, battery back up....
now, poor little car doesn't know if the battery lead has been cut or what, so is doing the right thing
The question is... how do you isolate alarm?
tried key in ignition, read instruction manual and it doesn't cover this situation.
Anyway, stuffed rags in siren and covered in foam.....reduced noise somewhat, but still upset neighbours.
Recharges battery, installed and all is good now.
Would appreciate any comment
Cheers
robbiew