less_retarded_wiki/javascript.md

32 lines
900 B
Markdown
Raw Normal View History

# JavaScript
2023-06-07 11:48:11 +02:00
JavaScript (not to be confused with completely unrelated [Java](java.md) language) is a [bloated](bloat.md) [programming language](programming_language.md) used mainly on the [web](www.md).
2024-01-14 23:22:09 +01:00
TODO: some more shit
2023-06-07 11:48:11 +02:00
TODO
```
"11" + 1 // "111"
"11" - 1 // 10
2024-01-14 23:22:09 +01:00
```
Here is how to **make your page work only with JavaScript turned off**:
```
<html>
<head>
<script>
function nuke() { document.body.innerHTML = "<p>disable JavaScript to view this page</p>"; }
</script>
</head>
<body onload="nuke()">
<h1> My awesome page </h1>
<p> My awesome page text :) </p>
</body>
</html>
```
{ NOTE: Remember that normally breaking compatibility on purpose is probably bad, it shouldn't be done seriously (don't waste effort on breaking something, rather make something nice, also censorship is always bad), but it's a nice [troll](troll.md) :D Don't forget to have fun sometimes. ~drummyfish }