I have been trying to learn javascript and was wandering if there is a way to test the href of an anchor to see if it is a .txt, .jpg ect. so that different file types taken from lets say a list of anchors could be handled in a different manner. Any ideas?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.