The fastening device has housing (7) and drive rod which is displaced longitudinally from recess (16) of housing. A locking element (8) is protruded from recess housing in open position. A pivot axis (9) for mounting the locking element in housing parallel to intended direction of movement of drive rod and is accessible for removing locking element in mounted state of housing with respect to window or door.