pre - JavaScript
Testing if Search engines will see a page as indexable if a
is removed by
JavaScript .<meta name="robots" content="noindex">
This page has:
<script>
// when the DOM is fully loaded, run this function
document.addEventListener('DOMContentLoaded', function () {
// remove the meta tag with name "robots"
var meta = document.querySelector('meta[name="robots"]');
if (meta) {
meta.parentNode.removeChild(meta);
}
// change the text of the paragraph with id "changeThis"
var paragraph = document.getElementById('changeThis');
paragraph.innerHTML = 'post - JavaScript';
});
</script>
Just before the </body>