Wi-Fi goes on and off on my iPhone 4s?

I use my iphone with Wi-Fi only when i'm home and, sometimes the Wi-Fi in my phone goes off for a few seconds and then comes on again. When it goes off i check the router and i see its working fine and i even have connection on my computer but not on my phone. I never take the phone out of range from the router and it stills goes on and off. Is it a problem with my phone? Or is it my router? I have IOS 6 and the connections issues are become more frequents.

Added (1). I forgot to mention that, when i go to the Wi-Fi settings, the phone recognize other connections but mine for a few seconds and that's when the Wi-Fi goes off because i only use my connection.

Hmm,
i think you should find the make/model number of your router and do a firmware upgrade.

i know my younger bro had a similar problem like this with his HTC One X and my elder bro with a samsung galaxy S3. They both using 2 different routers and had the same problem as you described.updating router firmware cured this problem.

and its weird coz the laptops worked fine but the phones didn't.

but try it, you have nothing to lose. Just make sure you have the right firmware for you specific router. Thats important.