Skip to content

Added Topics: Navigation Object & Screen Object in JavaScript#359

Merged
Roshansuthar1105 merged 2 commits intoRoshansuthar1105:mainfrom
deepanshu-prajapati01:added/navigation-and-screen-object
Sep 11, 2025
Merged

Added Topics: Navigation Object & Screen Object in JavaScript#359
Roshansuthar1105 merged 2 commits intoRoshansuthar1105:mainfrom
deepanshu-prajapati01:added/navigation-and-screen-object

Conversation

@deepanshu-prajapati01
Copy link
Contributor

Hi team 👋

This PR extends the documentation with detailed topics on the JavaScript Navigation and Screen objects—essential for understanding browser environment and display capabilities.


🔍 Problem Resolved

  • There was no dedicated documentation on the Navigation object, which offers details about browser history and navigation state.
  • The Screen object—crucial for screen dimensions and device-aware layouts—was not yet explained with examples.

✅ What’s Changed

  • Added a topic for the Navigation object, covering:

    • How to use window.navigator to access browser information.
    • Common properties: appName, appCodeName, userAgent, platform, and more.
    • Example code snippets showing practical uses for browser detection and feature support.
  • Added a topic for the Screen object, covering:

    • How to access window.screen for querying screen size, color depth, available width/height, and pixel depth.
    • Listed all main screen properties: width, height, availWidth, availHeight, colorDepth, pixelDepth.
    • Example code: dynamically using screen properties for responsive behaviors and UI.

📸 Screenshot

image image

🎯 Result

  • Learners and devs can now easily access reference and examples for both navigation and screen/environment properties in JS, improving frontend adaptability.

🏷 Labels Requested

  • gssoc25
  • level3
  • frontend

@netlify
Copy link

netlify bot commented Sep 11, 2025

👷 Deploy request for codifylearn pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit bb5102e

@Roshansuthar1105 Roshansuthar1105 merged commit 42c1470 into Roshansuthar1105:main Sep 11, 2025
@Roshansuthar1105 Roshansuthar1105 added enhancement New feature or request gssoc25 Level 3 Hard frontend Changes in frontend only labels Sep 11, 2025
@deepanshu-prajapati01 deepanshu-prajapati01 deleted the added/navigation-and-screen-object branch September 11, 2025 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request frontend Changes in frontend only gssoc25 Level 3 Hard

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants