By doing this, the JS functionality is added to the HTML document. It’s very performant, and handles corner cases in an arguably better way by returning “” instead of the full string when there’s no dot or no string before the dot. There are some corner cases that are better handled by VisioN’s answer below, particularly files with no extension (.htaccess etc included). Connect and share knowledge within a single […]
Categorias: Extentions Info