-
Code : Javascript : Turn a block into a clickable link area.
Here’s a little script (and some CSS) that turns an entire block (in this case a TR) into a click-able item:
-
Javascript: Parse Domain Name out of a String
Did I mention that the “Web” category might contain code? It might. In fact, it will. Here’s a random function I wrote last night that might be useful function getDomain (thestring) { //simple function that matches the beginning of a URL //in a string and then returns the domain. var urlpattern = new RegExp(“(http|ftp|https)://(.*?)/.*$”); var…