this little desk edge holder has a spring loaded clamp on the back side to hold the desk and so far has been holding up well.  the design with the mug handle cutouts is perfect for your standard morning coffee mug.  depending on the weight, it will tilt a little, so just be wary of using anything too tall or heavy.