开发者

Safari: search hidden text

开发者 https://www.devze.com 2022-12-26 06:29 出处:网络
I have couple of block on the page which are hidden. So, when user tries to search text on the page using build-in browser search mechanism safari shows these hidden blocks. I dont want to allow user

I have couple of block on the page which are hidden. So, when user tries to search text on the page using build-in browser search mechanism safari shows these hidden blocks. I dont want to allow user see these blocks befo开发者_StackOverflowre special event happened. Is there anyone who had the same problem?


Are you hiding it with css: ?

display: none;

I doubt you can force the browser to change it's behaviour but if the div or span or whatever element contains the text, is with "display: none" safari shouldn't find it.

0

精彩评论

暂无评论...
验证码 换一张
取 消