setSearchKeywords(history)
: document.cookie = “lastSearchKeyword=; path=/; max-age=0”;
btn.closest(“div”).remove();
});

let searchHistoryCookie = getSearchKeywords()

if (!Array.isArray(searchHistoryCookie)) {
searchHistoryCookie = []
}

let searchHistoryList = “”;
if (searchHistoryCookie.length > 0) {
for (let i = 0; i < searchHistoryCookie.length; i++) { searchHistoryList += ` ${searchHistoryCookie[i]} `; } } const elLastSearch = document.getElementById("cnbcSearchHistory"); elLastSearch.innerHTML = searchHistoryList; delSearch.addEventListener('click', () => {
searchInput.value = ”;
showDefault();
});

Loading…

Selengkapnya simak dialog Safrina Nasution dengan Vice President of APAC, Tencent Cloud International, Jimmy Chen di Profit, CNBC Indonesia,(Senin, 09/02/2026)

Sempat melemah di awal perdagangan, IHSG pada pukul 10:05 WIB menguat 0,39% ke 7.966 meski Rupiah masih dalm tekanan di Rp16.860 per Dolar AS.

Seperti apa sentimen yang menjadi penggerak pasar keuangan RI?

$(document).ready(function() {
detikConnectAutoLogin(‘10178’, false, onLoginClient);
});

function onLoginClient (data){
let prefix = “
const suffix = “

$(‘#loaderAuth’).remove()
const dcUrl = ‘https://connect.detik.com/dashboard/’;

if (data.is_login) {
$(‘#connectDetikAvatar’).html(`

`);
$(‘#UserMenu’).append(`
${prefix}

My Profile

Logout

${suffix}
`);

$(“#alloCardIframe”).iFrameResize();

} else {
prefix = “

$(‘#connectDetikAvatar’).html(`

`);
$(‘#UserMenu’).append(`
${prefix}

REGISTER

LOGIN
${suffix}
`);
}
}

RESEARCH
OPINION
PHOTO
VIDEO
INFOGRAPHIC
BERBUATBAIK.ID

CNBC Indonesia

Market

Video Market

Video

Video: IHSG Bergerak Volatil Hingga Rupiah Anjlok Lawan Dolar AS

Comment

SHARE

url telah tercopy

const copyurl = document.getElementById(“copyurl”);
const notif = document.querySelector(“.notif”);
const copyThis = function () {
navigator.clipboard.writeText(window.location.href);
notif.classList.remove(“opacity-0”);
notif.classList.add(“opacity-100”);
setTimeout(() => {
document.querySelectorAll(“.notif”).forEach((el) => {
el.classList.remove(“opacity-100”);
el.classList.add(“opacity-0”);
});
}, 600);
};

copyurl.addEventListener(“click”, () => {
copyThis();
});

var article = {
idnews : 709411,
idkanal : 19 };

var baseurl = ‘https://www.cnbcindonesia.com/market/20260209114011-19-709411/video-ihsg-bergerak-volatil-hingga-rupiah-anjlok-lawan-dolar-as’;

$(document).ready(function () {
setTimeout(
function() {
shareBox.run($(‘.cnbc-share-top’))
shareBox.countComment($(‘.count-komentar’));
}, 1000
);
});

CNBC Indonesia TV, 
CNBC Indonesia

09 February 2026 11:56

Jakarta, CNBC Indonesia- Indeks harga saham gabungan bergerak volatil di perdagangan sesi I, Senin (09/02).

Search

Search

Search History

const searchInput = document.getElementById(‘searchresult’);
const searchList = document.querySelector(‘.search-list-result’);
const searchSuggest = document.querySelector(‘.search-suggestion’);
const defaultSections = document.querySelectorAll(‘.default-section’);
const delSearch = document.getElementById(‘delSearch’);
const suggestionsContainer = document.getElementById(‘suggestions’);

function showDefault() {
defaultSections.forEach(el => el.classList.remove(‘hidden’));
searchSuggest.classList.add(‘hidden’);
suggestionsContainer.classList.add(‘hidden’);
delSearch.classList.add(‘hidden’);
}

function showSuggestion() {
defaultSections.forEach(el => el.classList.add(‘hidden’));
searchSuggest.classList.remove(‘hidden’);
suggestionsContainer.classList.remove(‘hidden’);
delSearch.classList.remove(‘hidden’);
}

// Debounce utility
function useDebounce(callback, delay) {
let timer;
return function (…args) {
clearTimeout(timer);
timer = setTimeout(() => callback(…args), delay);
};
}

// DOM elements

function escapeHTML(str) {
return str.replace(/[&”‘]/g, m =>
({ “&”:”&”, “”:”>”, ‘”‘:”"”, “‘”:”'” }[m])
);
}

function highlightKeyword(keyword, str) {
const safeStr = escapeHTML(str);
const safeKey = keyword.replace(/[.*+?^${}()|[]\]/g, “\$&”);
return safeStr.replace(new RegExp(`(${safeKey})`, “gi”), “$1″);
}

// Render suggestions
function renderSuggestions(suggestions, query) {
suggestionsContainer.innerHTML = ”; // Clear previous suggestions
if (suggestions.length === 0) {
return;
}

let suggestionList = “”
suggestions.forEach((suggestion, idx) => {
suggestionList +=
`

${highlightKeyword(query, suggestion)}

`;
});

suggestionsContainer.innerHTML = suggestionList
}

function fetchSuggestionsJSONP(query, callback) {
const script = document.createElement(‘script’);
const callbackName = `jsonpCallback_${Date.now()}`;
script.src = `https://suggestqueries.google.com/complete/search?client=chrome&q=${encodeURIComponent(query)}&callback=${callbackName}`;

window[callbackName] = function (data) {
callback(data[1], query); // Pass suggestions to callback
delete window[callbackName]; // Clean up
document.body.removeChild(script); // Remove script tag
};

script.onerror = function () {
console.error(‘Error fetching JSONP suggestions’);
delete window[callbackName];
document.body.removeChild(script);
};

document.body.appendChild(script);
}

// Debounced input handler
const handleInput = useDebounce((event) => {
const query = event.target.value.trim();

if (!query) {
showDefault();
return;
}

fetchSuggestionsJSONP(query, (suggestions) => {
if (!suggestions || suggestions.length === 0) {
suggestionsContainer.innerHTML = `No results found`
return;
}
renderSuggestions(suggestions, query);
showSuggestion();
});
}, 200);

// debounce delay value

searchInput.addEventListener(‘keyup’, handleInput);

function setSearchKeywords(keywords) {
document.cookie = `lastSearchKeyword=${encodeURIComponent(JSON.stringify(keywords))}; path=/`;
}

function getSearchKeywords() {
const cookies = document.cookie.split(‘; ‘);
for (let cookie of cookies) {
let [name, value] = cookie.split(‘=’);
if (name === ‘lastSearchKeyword’) {
try {
return JSON.parse(decodeURIComponent(value));
} catch (e) {
return [];
}
}
}
return [];
}

document.addEventListener(“click”, e => {
const btn = e.target.closest(“.remove-history”);
if (!btn) return;
const value = btn.dataset.value.trim();
let history = getSearchKeywords();
history = history.filter(
v => v.trim() !== value
);
history.length
?

Leave a Reply

Your email address will not be published. Required fields are marked *