开发者

Is there a search/find event in browsers?

开发者 https://www.devze.com 2023-04-12 02:49 出处:网络
I\'m in the middle of building a not scrollable, fixed layout website, but as usual, non conventional websites tend to have shortages. There is a scrollab开发者_高级运维le news element in the page, wh

I'm in the middle of building a not scrollable, fixed layout website, but as usual, non conventional websites tend to have shortages. There is a scrollab开发者_高级运维le news element in the page, which scrolls a div container's div childs up and down by the mousewheel. The problem arises, when someone tries to search in the page, pressing CTRL+F and the content is out of the viewport (not scrolled into view). Is there any common event, which handles the find/search inside browsers?


Im not completely certain about this, but I dont think DOM has any events that fire when a uses searches and that it a browser function that you can not hook on.

http://en.wikipedia.org/wiki/DOM_events

0

精彩评论

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