![]() | |||||
![]() |
|||||
|
Use Javascript to Link All Email Addresses in a Page
Posted by David Hammond, 2/14/2008
This came up with a site that needed to have a mailto link for email addresses, but other methods of linking the value didn't work. The same basic method could be used to replace any text in a page. <script type="text/javascript"> [\w\.\-]+\@([\w\-]+\.)+[\w]{2,4}The next part uses somewhat more advanced regular expression syntax:(?![^<]*>)The (?!... notation says that the email address will only match is it is not followed by [^<]*>, which should ensure that it is not within a property of an html tag. |
June 28, 2010 -- Modern Signal launches redeveloped website for National Health Policy Forum, a nonpartisan research and public policy organization at The George Washington University. The new site includes admin tools to manage email announcements, event invitations and RSVPs, surveys, and an extensive library of publications and meeting materials. The site also features a customized Google Search integration, and a new content management system was integrated within the existing design and information architecture of the site. -View-
April 22, 2010 -- Modern Signal launches a redesigned website for The NALP Foundation for Law Career Research and Education, a nonprofit organization that works to ensure that the legal community and society at large have a reliable, objective, and affordable source of information.The site includes a content management system; bookstore; and news, events, leadership, and products tools to manage the featured homepage content. -View-
April 5, 2010 --
|
||||