What Is My Screen Resolution Tool:
Here is a full responsive tool for the "What is my screen resolution" tool, implemented in HTML, CSS and JavaScript. Bootstrap is used for colorful styling and responsiveness:
What Is My Screen Resolution
Features of the What is My Screen Resolution Tool:
- The page has a card layout with the title "What is my screen resolution?"
- It contains a text input field where the screen resolution will be displayed.
- There is a button labeled "Get Resolution" which, when clicked, retrieves the screen resolution.
- The screen resolution is obtained using the window.innerWidth and window.innerHeight properties.
- The retrieved screen resolution is displayed in the text input field.
How it Works:
- When the page loads, it displays a card layout with text input fields and a button.
- When the user clicks the "Get Resolution" button, the JavaScript code retrieves the screen resolution using window.innerWidth and window.innerHeight.
- The screen resolution is then displayed in the text input field.
- The text input field is read-only to prevent users from modifying the displayed information.
Post a Comment
0Comments