What's the true meaning for "focus"? | Community
Skip to main content
zhengquanz32073
Level 3
August 30, 2017
Solved

What's the true meaning for "focus"?

  • August 30, 2017
  • 6 replies
  • 1552 views

Hi,

I'm just wondering what's the true meaning for "focus" and "blur".

In my past property, I set "change" for inbox content selection, but I'm wondering how can I use "focus" or "blur".

If I want to track who view the footer, can I just set event type "focus" on footer element?

thanks,

ZZ

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by jantzen_b

Yes, the designed behavior for the enters viewport event is to fire once per page view. This means if you scroll down to the targeted element, the event will fire. If you scroll back up so that the element leaves the viewport and later scroll back down, the event will not fire.

As you noticed, If you leave the page and return, the event will fire again.

6 replies

jantzen_b
Adobe Employee
Adobe Employee
August 30, 2017

Hi ZZ,

The focus and blur conditions are limited to forums. The focus event fires when the cursor enters the targeted forum field. The blur event happens when the cursor leaves that field.

If you are trying to track who views the footer of your page, I'd recommend using the enters viewport event. This will fire when the footer becomes visible to the user.

Thanks,
Jantzen

zhengquanz32073
Level 3
August 31, 2017

Hi Jantzen,

Does "forum" mean "form"?

I set an "Enters Viewport" event in my property, I see it only fire once in one "session".

"session" means that I only see one request in one "browser" session. I didn't clear cookies, when I enter the site with same browser, It also fire once.

I noticed that "Enters Viewport" fire only once in a session, why I didn't clear cookie and receive another request?

thanks,

ZZ

jantzen_b
Adobe Employee
Adobe Employee
August 31, 2017

Yes, those events are limited to forms. Sorry for the typo.

I'm not sure I understand the second part of your question. Are you saying that the enters viewport only fires once and you need to clear your cookies before it fires again?

What is your desired behavior? Are you trying to have a beacon fire each time the user sees the footer of the page on every page?

zhengquanz32073
Level 3
September 1, 2017

Please see    zhouzhengquan.github.io

I set a "enters viewport" on "1234" on the footer. It fires when I scroll down.

When I scroll down again, it didn't fire.

When I re-enter this site, it also fired once.

I'm just wondering it only fire at the first view of a visit?

jantzen_b
Adobe Employee
jantzen_bAdobe EmployeeAccepted solution
Adobe Employee
September 1, 2017

Yes, the designed behavior for the enters viewport event is to fire once per page view. This means if you scroll down to the targeted element, the event will fire. If you scroll back up so that the element leaves the viewport and later scroll back down, the event will not fire.

As you noticed, If you leave the page and return, the event will fire again.

zhengquanz32073
Level 3
September 4, 2017

thanks for your help!