You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
685 B
JavaScript

11 months ago
var currentTabId = null;
function TabClick(id, url) {
currentTabId = id;
var iframesrc = document.getElementById('F' + id).src;
if (iframesrc.indexOf('htm') > 0) {
document.getElementById('F' + id).src = url;
}
//scop.innerHTML = scop.innerText + "*";
return;
}
function OnTabChange(id, scope) {
var tabText = document.getElementById('HL' + id).innerText;
var lastChar = tabText.substring(tabText.length - 1, tabText.length);
if (lastChar == "*") {
var contentWidow = scope.contentWindow;
contentWidow.SaveDtlData();
document.getElementById('HL' + id).innerHTML = tabText.substring(0, tabText.length - 1);
}
}