hello everyone,
I'd like to make a function which takes a url as a parameter (for example www.test.com) and checks what kind of programming language does this website uses (asp, aspx, php and so on).

Does anybody have any idea how can i achieve this?
ps. if its doable with javascript aswell, i'd like to know.