Can I use hairspray to seal glitter on glass?

Can I use hairspray to seal glitter on glass? Lay it on a clean surface and spray a layer of hairspray on the glitter that you wish to seal. You should hold the hairspray can at a distance of ten inches away from the fabric to get the best coverage. It dries very quickly but will not keep glitter in place for long.

Lay it on a clean surface and spray a layer of hairspray on the glitter that you wish to seal. You should hold the hairspray can at a distance of ten inches away from the fabric to get the best coverage. It dries very quickly but will not keep glitter in place for long.