Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How To Write a JavaScript Event?
#3
(11-14-2018, 08:40 AM)Alexandre Machado Wrote: Hi Shane,

Add a parameter "event" to your function OnWindowScroll() and use event.target to obtain the element which triggered the event. So you should have:

function OnWindowScroll(event) {
  var theObject = event.target;
   ...
}

Please let me know if it does what you want.

Kind regards

Howdy Alexandre!

I am finally getting back to this and it still doesn't work. 

I have a region with a long string of text and I just want to know when the user scrolls to the end of it so I can enable an Accept Terms button.

Any chance for a quick small demo  Big Grin?

Thanks in advance,

Shane
Reply


Messages In This Thread
How To Write a JavaScript Event? - by ShaneStump - 11-11-2018, 09:31 PM
RE: How To Write a JavaScript Event? - by ShaneStump - 12-01-2018, 06:50 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)