<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/15-amazing-things-you-can-do-with-simple-javascript--jozlic1er" -->

---
title: 15 amazing things you can do with simple JavaScript 🤯
description: Discover the versatile and surprising capabilities of vanilla JavaScript through practical examples. Learn how to find operating system details, prevent page...
canonical: https://daily.dev/posts/15-amazing-things-you-can-do-with-simple-javascript--jozlic1er
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: 15 amazing things you can do with simple JavaScript 🤯 | daily.dev
og:description: Discover the versatile and surprising capabilities of vanilla JavaScript through practical examples. Learn how to find operating system details, prevent page...
og:url: https://daily.dev/posts/15-amazing-things-you-can-do-with-simple-javascript--jozlic1er
og:image: https://api.daily.dev/og/posts/JOzliC1er.png
og:image:alt: 15 amazing things you can do with simple JavaScript 🤯
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# 15 amazing things you can do with simple JavaScript 🤯

**[Community Picks](https://daily.dev/sources/community)** · [@anmolbaranwal](https://daily.dev/anmolbaranwal) · 7 min read · 3189 upvotes · 115 comments

## Summary

Discover the versatile and surprising capabilities of vanilla JavaScript through practical examples. Learn how to find operating system details, prevent page refreshing, redirect users to new pages, validate emails, get the current URL, and detect mobile browsers. Additional features include handling disabled JavaScript, accessing module metadata, getting timezone offsets, setting the cursor to wait, and manipulating console messages with CSS.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://dev.to/anmolbaranwal/15-amazing-things-you-can-do-with-simple-javascript-g88>

## Community discussion

Top comments from developers on daily.dev.

**@anmolbaranwal** · 10 upvotes

> Thank you for sharing @bobbyiliev :)

**@ray73864** · 6 upvotes

> Was an interesting read, had a few issues in it, but overall decent.

**@pruthvi30** · 3 upvotes

> Amazing!

**@srbentu** · 3 upvotes

> just perfect!

**@mtdt** · 3 upvotes

> if (true) {
>   return true
> } else {
>   return false
> }
>
> Dude!?!

## Similar posts on daily.dev

- [Don’t just attend KubeCon \+ CloudNativeCon, Merge Forward your experience\!](https://daily.dev/posts/don-t-just-attend-kubecon-cloudnativecon-merge-forward-your-experience--l0rpp73x8) · CNCF · 1 upvotes · 0 comments
- [Announcing H2 2026 KCDs](https://daily.dev/posts/announcing-h2-2026-kcds-m96goajm1) · CNCF · 1 upvotes · 0 comments
- [Two months of Open Community Groups](https://daily.dev/posts/two-months-of-open-community-groups-asf52zhbs) · CNCF · 0 upvotes · 0 comments

---

Tags: [#webdev](https://daily.dev/tags/webdev), [#javascript](https://daily.dev/tags/javascript), [#frontend](https://daily.dev/tags/frontend)

[View this post on daily.dev](https://daily.dev/posts/15-amazing-things-you-can-do-with-simple-javascript--jozlic1er)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"15 amazing things you can do with simple JavaScript 🤯","url":"https://daily.dev/posts/15-amazing-things-you-can-do-with-simple-javascript--jozlic1er","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/15-amazing-things-you-can-do-with-simple-javascript--jozlic1er"},"datePublished":"2024-07-06T08:27:46.038Z","dateModified":"2024-10-05T17:00:11.079Z","description":"Discover the versatile and surprising capabilities of vanilla JavaScript through practical examples. Learn how to find operating system details, prevent page...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/2d16414555712becd4686fa751dda66c?_a=AQAEuiZ","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/2d16414555712becd4686fa751dda66c?_a=AQAEuiZ","isAccessibleForFree":true,"articleSection":"Community Picks","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Person","name":"Anmol Baranwal","url":"https://daily.dev/anmolbaranwal","image":"https://avatars.githubusercontent.com/u/74038190?v=4","description":"Just a tech guy who loves writing and building cool stuff","interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":19790}},"commentCount":115,"discussionUrl":"https://daily.dev/posts/15-amazing-things-you-can-do-with-simple-javascript--jozlic1er","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":3189},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":115}],"keywords":"webdev,javascript,frontend","timeRequired":"PT7M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Community Picks","item":"https://daily.dev/sources/community"},{"@type":"ListItem","position":3,"name":"15 amazing things you can do with simple JavaScript 🤯"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/15-amazing-things-you-can-do-with-simple-javascript--jozlic1er","comment":[{"@type":"Comment","text":"Thank you for sharing @bobbyiliev :)","datePublished":"2024-07-06T12:33:37.521Z","dateModified":"2024-07-06T12:33:52.190Z","url":"https://daily.dev/posts/JOzliC1er#c-iMQZPYVXT","author":{"@type":"Person","name":"Anmol Baranwal","url":"https://daily.dev/anmolbaranwal","image":"https://avatars.githubusercontent.com/u/74038190?v=4"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":10}},{"@type":"Comment","text":"Was an interesting read, had a few issues in it, but overall decent.","datePublished":"2024-07-08T00:08:39.095Z","url":"https://daily.dev/posts/JOzliC1er#c-pamsdSiG3","author":{"@type":"Person","name":"Ray","url":"https://daily.dev/ray73864","image":"https://avatars.githubusercontent.com/u/1343103?v=4"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":6}},{"@type":"Comment","text":"Amazing!","datePublished":"2024-12-26T13:42:42.309Z","url":"https://daily.dev/posts/JOzliC1er#c-VjJsh3E3T","author":{"@type":"Person","name":"pruthvi","url":"https://daily.dev/pruthvi30","image":"https://avatars.githubusercontent.com/u/110020770?v=4"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":3}},{"@type":"Comment","text":"just perfect!","datePublished":"2024-07-07T20:22:20.411Z","url":"https://daily.dev/posts/JOzliC1er#c-FbJ7ZfT4W","author":{"@type":"Person","name":"Breno Marcomini","url":"https://daily.dev/srbentu","image":"https://lh3.googleusercontent.com/a/ACg8ocI6I-49ynenpVpdHKs6cputPhOhGANpOzFJL-p2INugvxHETSvTww=s96-c"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":3}},{"@type":"Comment","text":"if (true) {\nreturn true\n} else {\nreturn false\n}\nDude!?!","datePublished":"2024-07-17T11:30:15.438Z","url":"https://daily.dev/posts/JOzliC1er#c-Oe54ruOOC","author":{"@type":"Person","name":"Matteo Del Treste","url":"https://daily.dev/mtdt","image":"https://lh3.googleusercontent.com/a/AGNmyxbsRMeAK1rbiNiqouuf6twnE6kAlNva4hU1j2bb=s96-c"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":3}}]}
```

