Hi,
I need to show some banners after user inactivty of 15 sec on web page, I written JS code which is running on console but giving an error as "Invalid user input" on Target's profile script.
var time;
document.onload = resetTimer;
document.onmousemove = resetTimer;
document.onmousedown = resetTimer; // touchscreen presses
document.ontouchstart = resetTimer;
document.onclick = resetTimer; // touchpad clicks
function popup()
{return true; }
function resetTimer() {
clearTimeout(time);
time = setTimeout(popup, 15000);
}
can someone please guide me how I can use this as profile script? so based on this audience can be created.
@LJ_Jones @ParitMittal @nickh86417692 @Løjmann