Can local HTML and JavaScript run offline on iPhone?
Yes. A page can calculate a total, check a quiz answer or draw a chart using code and data bundled with it. An operation that asks a remote service for a price, a login or an AI response still needs that service. Test the action you care about with the network disconnected.
Try a self-contained example
Save the following as counter.html, import it into HTMLKeep and tap the button twice. The number should reach 2. This example only changes the current page, so reopening it resets the count.
<!doctype html>
<meta name="viewport" content="width=device-width, initial-scale=1">
<button id="count">0</button>
<script>
const count = document.getElementById('count');
count.onclick = () => { count.textContent = Number(count.textContent) + 1; };
</script>
Track down a page that only works online
Open your own page while connected, then turn off Wi-Fi and mobile data and reopen it. If the layout changes, check for externally hosted styles or fonts. If the page looks fine but a button stops responding, look for an external script or a request made when you tap it. A cached file can mask a missing dependency. Inspect the actual ZIP for the required assets too.
For a private report, you can export the data into the project alongside the chart code. A live dashboard needs a connection to refresh its data. See how to package a project with its assets for a concrete folder layout.