Galaxy Tab 3 7.0 4.1.2 wifi disconnects when my screen goes off
Set Wi-Fi sleep policy to "Never"

For Android 4.0 (Ice Cream Sandwich) and later:

1) Navigate to Menu > Settings > WiFi and select the menu button again. 
2) Select Options, Advanced
3) Set “Keep WiFi on during sleep” to “Always”