substr() javascript method extracts the characters from a string. Here is working example for substr function.

<script type="text/javascript"> var str="Hello world!"; document.write(str.substr(3)+"<br />"); document.write(str.substr(3,4)); </script>
This function works with following browser.
- Firefox
- Safari
- Opera
- google chrome
There is issue with IE browser. Do not use the substr javascript method – this function is not working in IE browser.
You need to use the substring() method. This is similar to substr. You can achieve your work by using this method.
Following is the working example of substring method.
<script type="text/javascript"> var str="Hello world!"; document.write(str.substring(3)+"<br />"); document.write(str.substring(3,7)); </script>
Incoming search terms:
- javascript substring not working in ie9
- js substring ie problem
- substring in javascript not working in ie7
Helpful information thanks. I added your blog on my favorite, will visit again.
Of course, what a great site and informative posts, I will add backlink – bookmark this site? Regards, Reader
Hello, this is my first time i visit here. I found so many interesting in your blog especially on how to determine the topic. keep up the good work.
I’ve just started off a blog, the knowledge you give on this site has aided me extremely. Thank you for all your time & work.
Good! Thank you! I always wanted to write in my site something like that. Can I take part of your post to my blog?
Great read. Thanks for the info!
I would like to say “wow” what a inspiring post. This is really great. Keep doing what you’re doing!!
Great read. Thanks for the info!
Good! Thank you! I always wanted to write in my site something like that. Can I take part of your post to my blog?
Nice post! You truly have a wonderful way of writing which I find captivating! I will definitely be bookmarking you and returning to your blog. In fact, your post reminded me about a strange thing that happened to me the other day. I’ll tell you about that later…
Awesome post. I so good to see someone taking the time to share this information