Possible Duplicate:
smart way to shorten long strings with javascript
I have
<h1>"Very big" page title </h1>
page title and I need to check if character count is bigger than 30, than replace last characters with ...
Can I somehow split text in two parts and replace second part?