I believe you're describing a Sissy Squat *. This is a great body-weight exercise for developing your quadriceps. However, sissy squats don't work the glutes at all; instead recruiting the hip flexors. These would not be a replacement for traditional squats but they can be implemented alongside squats for a challenging leg day.
* Not for sissies.