You could sew velcro strips to the fabric and stick the velcro it is to attach to on the window frame.