thebigdir > References > DOM2 Reference

splitText (method )

Owning interface and usage:  
Text.splitText(offset)

Member of these other interfaces:  
CDATASection

Description:  
Breaks this node into two nodes at the specified offset, keeping both in the tree as siblings. After being split, this node will contain all the content up to the offset point. A new node of the same type, which contains all the content at and after the offset point, is returned. If the original node had a parent node, the new node is inserted as the next sibling of the original node. When the offset is equal to the length of this node, the new node has no data.

Parameters:  
unsigned offset  -  The 16-bit unit offset at which to split, starting from 0.

Returns:  
Text -  The new node, of the same type as this node.

Exceptions:  
DOMException INDEX_SIZE_ERR
Raised if the specified offset is negative or greater than the number of 16-bit units in data.
DOMException NO_MODIFICATION_ALLOWED_ERR
Raised if this node is readonly.


Example:
JavaScript:
  var txt = document.createTextNode('AAA-BBB-CCC');
  var output1 = txt.splitText(4).data;
  var output2 = txt.data;
Output:
desired your browser
output1: BBB-CCC
output2: AAA-



_____________________________________________
Reference Search | Sitemap | Surf Clothing Glossary       thebigdir | internet users




Related sites:

 

Luxury designer linens bed sheets bedding

 

you got to check these guys out here: search engine optimization emarketing seo and Search Engine Marketing. It is exactly what you need.

 

 

visit Quiksilver Surf Camps and Surf School and book a surf lesson.

And for the girls you can visit this site Roxy Surf Camps and Surfing School to learn more about surfing and take a class as well.

 

If you want to see a good surf contest visit this site: Billabong Pro Pipeline Masters Surfing Contest 2007. You'll be glad you did.

Billabong Pro Pipe Pipeline Masters 2007 Surf Contest This website is one that you have to see at boardshort superstore quiksilver billabong swim suit hurley roxy quicksilver volcom

 

This is a must go surfing event: Eddie Would Go Aikau Big Wave Invitational 2007 Quiksilver Surf fans from around the world will be watching this event and buying the Eddie Would Go Surf Clothing.

 

 

Check out these online surf shop websites. I like the BOARDSHORTSUPERSTORE.COM website the best but there are others. There is also the BUYBOARDSHORTS.COM website that has a good selection as well. And if you want to see a great selection of shirts, BUYSURFTEES.COM is a good site and I think each one of the websites has a great selection.