I have been in situations in which I needed to get a disc out of my Mac G4 and could not get into OS X. This is a simple tech-recipe for opening the CD/DVD drive on boot.
To open the DVD/CD drive upon boot, use the following instructions:
1. Hold down the mouse button.
2. Power on your Mac.
3. The drive should open after you hear the boot sounds.