The replaceAdjacentText MethodThe replaceAdjacentText method is much like the insertAdjacentText method, discussed earlier in this chapter, except that this method enables you to replace text rather than insert it. You can see the support for this method in Table 6.43. Table 6.43. The replaceAdjacentText Method
You pass a position argument to this method, and the new text. Here's the values the position argument can take:
|