Can I use HTML/Javascript to add hidden text that still gets counted by ctrl+F? | XM Community
Skip to main content

I have a string of 1s and 0s that I want to have people count. However, to separate those people who are actually counting from those who are "cheating" by using ctrl+F, I'd like to include a few extra 1's that do not appear to people but would get counted if someone was using ctrl+F.
In other words, I'd like something to be displayed like this: 1 0 1 1
....but actually have two extra hidden 1's so anyone counting would see three ones but anyone using ctrl+F would report five ones (3 displayed + 2 hidden).
Is it possible to use HTML to have hidden text that isn't displayed but is counted by ctrl+F?
Here's what the HTML view looks like right now.
Count the number of "ones" below: 



1 0 1 1
Thanks so much in advance for any help you might offer!

Solved!
1 1
1 0 1 1


Leave a Reply