Using acrylic paints on a glass background?

Can i use acrylics on glass. It sticks and keept just as i want it when wet but what about when it dries-will it have the adhesiveness not to just slip off the glass once it hardens?
Thanx