بسم الله الرحمن الرحيم
A woman who is on her haidh or a person who is in the state of janaabah can touch the corners/edges of those things like a locket or frame, etc. in which the verses of the Quran are written. However, it is not permissible to touch actual writing. It is still better, though, that a cloth etc. is used to even hold it by the corners/edges.
أفضل التطبيق العصري على مسائل القدوري
للمفتي محمد أشرف الاشاعتي
Vol.1 Pg.202