Caramelize onions: Melt 1 tablespoon butter in a cast iron skillet over medium-low heat. Add sliced onions and cook, stirring occasionally, for 20-30 minutes until soft, golden brown, and sweet. Add a splash of water if pan gets too dry. Remove and set aside.
Form patties: Divide ground beef into 4 equal portions. Shape into thin patties slightly larger than your bread slices. Press a small indentation in the center of each patty with your thumb. Season both sides generously with salt and pepper.
Cook patties: Heat oil in the same skillet over medium-high heat. Cook patties for 3-4 minutes per side until desired doneness. Remove and set aside.
Assemble sandwiches: Butter one side of each bread slice. On the unbuttered side of 4 slices, place 1 slice of cheese, a beef patty, generous portion of caramelized onions, another slice of cheese, and top with remaining bread slices (buttered side facing out).
Grill sandwiches: Return skillet to medium heat. Place sandwiches in pan and cook for 3-4 minutes per side, pressing gently with spatula, until bread is golden brown and cheese is melted.
Serve: Cut in half and serve immediately with pickles, fries, or coleslaw.