The time spent by the students browsing the internet in class is associated with lower test scores, according to research.