I know this has been answered before, but I'm a newb and I can't get it to work in my situation. Basically, I have pages that call the URL and display part of them on the page. I am hoping to have the first letter of the displayed word capitalize automatically.
This is an example of what i'm using:
<script> var str = (window.location.pathname); var str2 = "/seedling/"; document.write(str.substr(str2.length,(str.length - str2.length - 1 ) ) ); </script> Thanks so much for your help, it is much appreciated!!
Proper Case