Is there a search engine that lets you search for pub-idnumber? Neither Google nor Yahoo return anything.
I don't really need it. More curiosity than anything else. Google surely uses the info to associate accounts together and I bet it goes into their algo. Yahoo probably uses Google's info in their algo, since they're sending out crawlers and should have this info too. Interesting that they don't show this info. I assume by now Yahoo crawls javascript. But haven't followed Y! in a long time. I find search engines interesting and try to think like a google engineer. Which generates these kinds of questions.
MisterZee, What are you stating is very possible but is quite hard for us, regular web people with no connection with a major SE, to find out if is true or not. But regarding your initial question, all engines discard the javascript content for searching. Obviously, they can do anything with the info since they grab our html output.
I'm almost positive I heard that Google started indexing javascript some time ago. Haven't ever checked the logs for such but I will do so.
That is valuable information for them and I wouldn't be surprised if they are actually using it. There are many ways they could benefit from it. Somehow they are interpreting the javascript code - a proof would be the javascript redirects that trigger penalties as many most of sites using it are spammy ones.
The pub-id is in the javascript and in an iFrame, so you would need a search engine that searches the page html text, not just what appears on the page as text for the Google bot.