A West Australian man has been charged after he allegedly attempted to drown his young child at the Dampier Foreshore.