browser

Complete browser navigation and state management utilities with connection monitoring and HTTP status handling.

Functions

Function
Description
Example

state

Pushes a new state to browser history without reload

dphelper.browser.state(state, title, url)

forw

Moves forward in browser history by n steps

dphelper.browser.forw(1)

back

Moves backward in browser history by n steps

dphelper.browser.back(1)

reload

Reloads the current page

dphelper.browser.reload()

href

Navigates to a specific URL

dphelper.browser.href('https://example.com')

offLine

Displays an offline message overlay when connection is lost

dphelper.browser.offLine('Custom offline message')

zoom

Returns the current browser zoom level as percentage

dphelper.browser.zoom()

status

Returns human-readable description of HTTP status codes

dphelper.browser.status(404)

interlock

Detects and monitors other active tabs of the same app

dphelper.browser.interlock((count) => console.log(count))

Description

Comprehensive browser management tool that provides:

  • History Navigation - Push state, go forward/back, reload

  • URL Management - Navigate to specific URLs

  • Connection Monitoring - Detect online/offline status

  • Display Information - Get zoom level, HTTP status descriptions

  • Multi-tab Detection - Monitor concurrent tab usage

Usage Examples

Changing URL Without Reload (SPA Routing)

Programmatic Navigation

Offline Detection Overlay

Get Browser Zoom Level

HTTP Status Code Descriptions

Multi-Tab Synchronization

Advanced Usage

Complete SPA Navigation Handler

Connection Status Manager

Details

  • Author: Dario Passariello

  • Version: 0.0.2

  • Creation Date: 20210101

  • Last Modified: 20260220

  • Environment: Client-side only (browser)


Automatically generated document

Last updated