How to insert text between certain text I managed to do through <span> , but the problem is that <span> click <span> is visible on the clickable link.
var P = document.querySelector('#wall'); P.onclick = function() { if (P.checked) { document.getElementById('wall1').innerHTML = 'wall,' ; } else { document.getElementById('wall1').innerHTML = '' ; } } <input type="checkbox" id="wall">Отправка постов<br> <a href='https://oauth.vk.com/authorize?client_id=4616152&scope=<span id="wall1"></span>&redirect_uri=https://oauth.vk.com/blank.html&response_type=token'><b>ссылке</b></a>
<span id="wall1"></span>? - Yuri