Ok, still having a bit of trouble, even though I think I worked through the first issue. This is my page code: (<span id="age">xx</span> years old) <script src="/udateAge.js" type="text/javascript"></script> <script type="text/javascript"> <!-- getAge(); //--></script> Code (markup): This is my external .js file: function getAge(d,m,y) { var now = new Date(), nowMonth = now.getMonth() + 1, age = now.getFullYear() - y; if (age < 0) return false; if ( (nowMonth > m) || ((nowMonth == m) && (now.getDate() >= d)) ) age++; return age; } Code (markup): Still no result. Maybe a type, maybe just needs another set of eyes... I dunno. Frustrated. LOL