
This function is used to search and select particular word. In this function document.getElementById('d')); getElementById is used to get the element by using id,but here there is no id with 'd', what it will represents
function Search(){ var textRange = document.body.createTextRange(); textRange.findText("glitters"); textRange.select(document.getElementById('d')); }
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.