Plugin JavaScript Function scrollToSlotTop()

function module_class_name.scrollToSlotTop(
slotNameOrContainedElement, neverScrollDown
)

Description

Scrolls the Visitor's screen to the top of a slot on the current page.

Where You Can Use It

Anywhere in your JavaScript code in the front-end. From Zenario 7.0 onwards.

Parameters

slotNameOrContainedElement

The name of the Slot on the current page to reload. You should write this in using the $slotName environment variable.

Alternately, you can pass in an element from the Slot, and the CMS will look up the name of the Slot from that.

neverScrollDown

If this is set to true, the CMS will only ever scroll the Visitor's screen upwards.

Return Value

No return value.