Skip to content

Added Topics: JavaScript Window Object & History Object#343

Merged
Roshansuthar1105 merged 3 commits intoRoshansuthar1105:mainfrom
deepanshu-prajapati01:added/window-and-history-object
Sep 10, 2025
Merged

Added Topics: JavaScript Window Object & History Object#343
Roshansuthar1105 merged 3 commits intoRoshansuthar1105:mainfrom
deepanshu-prajapati01:added/window-and-history-object

Conversation

@deepanshu-prajapati01
Copy link
Contributor

Hi team 👋

This PR introduces two new topics focused on the JavaScript Window and History objects, providing detailed explanations and practical examples about browser window manipulation and session navigation.


🔍 Problem Resolved

  • There was no dedicated coverage on the Window object, which represents the browser window and exposes numerous properties and methods.
  • The History object, which allows programmatic control over the browser session history, was undocumented.

✅ What’s Changed

  • Added a "JS Window Object" topic explaining:

    • The Window object as the global object in browsers.
    • Common properties (location, document, navigator, screen, etc.).
    • Useful methods like alert(), open(), close(), focus(), setTimeout(), and others.
    • Examples demonstrating interaction with the browser window and environment.
  • Added a "JS History Object" topic covering:

    • The History interface and its use for managing session history.
    • Methods like back(), forward(), go(), pushState(), and replaceState().
    • Practical usage for SPA navigation and state management.

📸 Screenshot

image image

🎯 Result

  • Users now have clear, well-organized resources on fundamental browser APIs for window and navigation control.
  • Improves documentation completeness for web development fundamentals.

🏷 Labels Requested

  • gssoc25
  • level3
  • frontend

@netlify
Copy link

netlify bot commented Sep 10, 2025

👷 Deploy request for codifylearn pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 420b5e8

@Roshansuthar1105 Roshansuthar1105 added enhancement New feature or request gssoc25 Level 3 Hard labels Sep 10, 2025
@Roshansuthar1105 Roshansuthar1105 merged commit 69e6ab4 into Roshansuthar1105:main Sep 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request gssoc25 Level 3 Hard

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants