Development Documentation
  • Docs

›TV Applications

Introduction

  • Introduction
  • Smart TV specifications

Testing & Debugging

  • TV devices
  • Emulators

TV Applications

  • Intro
  • Navigation
  • Keyboard
  • Video Player & Types
  • Exiting Apps

Knowledgebase

  • VK_variable overview

Exiting Apps

Expected behavior for the EXIT functions from the application:

  1. If there is referrer url and it is not the same as the current location => window.location.assign(document.referrer)
  2. If there is referrer url and it is same as the current location => window.close()
  3. If there is no referrer url => window.close()

Example Code

if(document.referrer == "") { window.close(); } // if there is no refferer url, close the app
else{ window.location.assign(document.referrer) } // if there is a refferer url, go back to referrer page
← Video Player & TypesVK_variable overview →
Docs
IntroductionEmulator & ToolsBasicsHow to workKnowledgebase
Contact
info@foxxum.com
facebooktwitterlinkedin
Foxxum GmbH
Copyright © 2022 Foxxum GmbH