If I add content to the page via JavaScript, it will be crawled using a search engine and available for reading from the screen.
For an example of this
var tip = "<p>Most computers will open PDF documents ";
tip += "automatically, but you may";
tip += "need to download <a title='Link to Adobe website-opens in a new window'";
tip +=" href='http://www.adobe.com/products/acrobat/readstep2.html'
target='_blank'>Adobe Reader</a>.</p>";
$(document).ready(function(){
if($("div#maincontent a[href*='/pdf']").length>0){
$("div#maincontent").children(":last-child").after(tip);
}
});
Edit: I want to hide this from the search engine, but at the same time, is it possible to maintain access to it using a screen reader?
source
share