by Support_STA » Wed May 07, 2014 2:14 pm
Hi Geneellis,
To handle back button on Toshiba models, you need to override evenhandler of keypress, keydown... button. Besides that, detecting Toshiba models is necessary too.
Please review bellow code that helps you to detect Toshiba models and override eventhandler:
function detectToshiba(){
var userAgent = new String(navigator.userAgent);
var detectStrIndex = userAgent.search(/TOSHIBA-DTV/i);
if (detectStrIndex != -1){
return true;
}
return false;
}
function keydownhandler(e)
{
switch (e.keyCode)
{
...
case VK_BACK:
// Your code here
...
}
}
Thanks and regards,
STA QA