About 510,000 results
Open links in new tab
  1. JavaScript reference - JavaScript | MDN - MDN Web Docs

    Mar 7, 2025 · Once you have a firm grasp of the fundamentals, you can use the reference to get more details on individual objects and language constructs. JavaScript standard built-in objects, along with their methods and properties. JavaScript statements and declarations. JavaScript expressions and operators. ?. ?? JavaScript functions. JavaScript classes.

  2. HTML <script> src Attribute - W3Schools

    If you want to run the same JavaScript on several pages in a web site, you should create an external JavaScript file, instead of writing the same script over and over again. Save the script file with a .js extension, and then refer to it using the src attribute in the <script> tag.

  3. JavaScript Reference - W3Schools

    Use decodeURI () or decodeURIComponent () instead. Well organized and easy to understand Web building tutorials with lots of examples of how to use HTML, CSS, JavaScript, SQL, Python, PHP, Bootstrap, Java, XML and more.

  4. JavaScript and HTML DOM Reference - W3Schools

    Complete JavaScript and HTML DOM References All Properties and Methods with Full Examples Revised April 2024

  5. JavaScript | MDN - MDN Web Docs

    Apr 3, 2025 · Browse the complete JavaScript reference documentation. Get to know standard built-in objects: Array, Boolean, Error, Function, JSON, Math, Number, Object, RegExp, String, Map, Set, WeakMap, WeakSet, and others. Learn more about the behavior of JavaScript's operators instanceof, typeof, new, this, the operator precedence, and more.

  6. Add JavaScript to your web page - HTML: HyperText Markup …

    6 days ago · To make JavaScript work in your favor, it's worth knowing about certain best practices for adding JavaScript: Make all content available as (structured) text. Rely on HTML for your content as much as possible. For example, if you've implemented a nice JavaScript progress bar, make sure to supplement it with matching text percentages inside the ...

  7. javascript - Directly reference HTML elements - Stack Overflow

    When obtaining a reference to an html element, using javascript, I have always previously used either jQuery or document.getElementById. It also appears that you can directly access a element simply by using it's id. Can someone explain the nuances of this?

  8. javascript - How to use "this" reference of the element calling …

    Sep 17, 2012 · var name = //name of the calling element "$(this).attr('name')" so if the button named 'somename1' calls the function, the variable 'name' will be assigned to 'somename1' and so if 'somename2' called it, it will be assigned to 'somename2' Use the keyword this, like so: var name = exampleElement.name; But if you use jquery, you could do.

  9. HTML JavaScript - GeeksforGeeks

    Jan 18, 2024 · The HTML <script> tag is used to integrate JavaScript code or give reference through the attribute "src" for external JavaScript files within an HTML document. With the help of JavaScript, we can dynamically manipulate the HTML elements.

  10. HTML JavaScript - W3Schools

    Common uses for JavaScript are image manipulation, form validation, and dynamic changes of content. To select an HTML element, JavaScript most often uses the document.getElementById() method. This JavaScript example writes "Hello JavaScript!" …

Refresh