Laptop crashing and requiring hard reset

Hello everyone, im new to the the community and require some help with my HP laptop. Ive had it now for roughly 3 years and now when I watch videos or youtube links it will cause my computer to freeze and lockup. There is still an image on my screen but keyboard, mouse, and peripherals no longer work and I have to do a hard reset to reboot the computer. This has happened recently and I have no idea why. I have updated all files from windows, updated Java, updated flash player, bios, and graphic driver. I'm running out of ideas and I want to make sure its not a hardware problem before I go to my last resort and reformat and reinstall windows. Thanks

Edit:
My laptop specs:
HP Pavillion Dv6
Windows 7 Home edition
6gb Ram
AMD Phenom II 960 Quad Core 1.8 ghz
 
Do a memtest u can download it from here undewr downloads or google free memtest 86 run it and see if any errors let it run for 4 passes which could be all night like 6 to 10 hours
 
IS THAT ALL GOOD no errors

if no errors then go to start computer then system properties then device manager and make sure the is no exclamation marks next to any of the drivers
 
Back