- open an editor. Simplest one is notepad
- Write basic HTML there like below
<html> <head> </head> <body> Hello World! </body> </html>
- Add a script tag and write your js inside it like below
<html> <head> <script> alert("hello"); </script> </head> <body> Hello World! </body> </html>
- or you can write your js code in a file and save as .js file and link that in the above code
<html> <head> <script src="myScript.js"></script> </head> <body> Hello World! </body> </html>
- Save this as yourfile.HTML and open in any browser
Related Posts:
- How do I check whether a checkbox is checked in jQuery?
- SyntaxError: Unexpected token o in JSON at position 1
- What does the function then() mean in JavaScript?
- Understanding unique keys for array children in React.js
- (Google Map API) Geocode was not successful for the following reason: REQUEST_DENIED
- Generate random number between two numbers in JavaScript
- Difference between npx and npm?
- How do I copy to the clipboard in JavaScript?
- Client on Node.js: Uncaught ReferenceError: require is not defined
- How can a Discord bot create a hyperlink in a Discord message in an embed or in general?
- What is an unhandled promise rejection?
- What is a good regular expression to match a URL? [duplicate]
- How can I get the data-id attribute?
- document.getElementById vs jQuery $()
- How to import jquery using ES6 syntax?
- How to filter an array/object by checking multiple values
- Does JavaScript pass by reference? [duplicate]
- How to randomize (shuffle) a JavaScript array?
- How to pass props to {this.props.children}
- Adding options to select with javascript
- MRAID file reference
- How to format numbers?
- What is the most efficient way to deep clone an object in JavaScript?
- Loading local JSON file
- How to check all checkboxes using jQuery?
- Accessing elements by type in JavaScript
- What is the most efficient way to deep clone an object in JavaScript?
- RegExp in TypeScript
- How to use searchFile and searchFolder at the same time correctly? – App Script
- node.js TypeError: path must be absolute or specify root to res.sendFile [failed to parse JSON]
- Full-screen iframe with a height of 100%
- Change CSS of class in Javascript?
- keycode 13 is for which key
- SyntaxError: ‘import’ and ‘export’ may appear only with ‘sourceType: module’ – Gulp
- Get the value of checked checkbox?
- Equivalent of jQuery .hide() to set visibility: hidden
- How can I get the last character in a string?
- Create table using Javascript
- Parse an HTML string with JS
- JS file gets a net::ERR_ABORTED 404 (Not Found)
- Shortest way to print current year in a website
- push object into array
- module.exports “Module is not defined”
- Why doesn’t JavaScript support multithreading?
- plain count up timer in javascript
- Is it possible to append to innerHTML without destroying descendants’ event listeners?
- How to add an object to an array
- Finding the average of an array using JS
- Is it possible to simulate key press events programmatically?
- Vue template or render function not defined yet I am using neither?
- Cannot read property ‘length’ of null (javascript)
- Caesar Cipher in Javascript
- How can I copy to clipboard in HTML5 without using flash?
- how to get the value of a textarea in jquery?
- Maximum call stack size exceeded on npm install
- Return array from function
- Why define an anonymous function and pass it jQuery as the argument?
- Error parsing XHTML: The content of elements must consist of well-formed character data or markup
- How to scroll an HTML page to a given anchor
- Javascript call() & apply() vs bind()?
- How to get child element by class name?
- TypeError getElementsByTagName is not a function issue
- Creating Accordion Table with Bootstrap
- Creating Multiple Modals on a Single Page
- How to check if the URL contains a given string?
- Check if url contains string with JQuery
- what is the best way to check variable type in javascript
- JavaScript Array Push key value
- Editing Source Code in WordPress
- wp_enqueue_script isn’t connecting my custom js file
- How do I fire a snackbar notice in admin?
- How/Where is editor.min.js Added to the wp-admin Post Page?
- Should a WordPress plugin polyfill the global JS environment?
- Close TinyMCE plugin window on click away
- Running JS after theme customizer finished initialization
- How to add custom javascript into from custom plugin
- remove inline scripts from the_content() produced by plugins?
- Help display image in single post using javascript zoom image..?
- Uncaught TypeError [closed]
- Checks when fetching data from multiple REST API endpoints in Gutenberg
- How to get the title of the item that is clicked on
- Correct way to include extra styles & script files?
- How can I allow HTML in Gutenberg UI elements help text?
- How do I make my wordpress post appear in a mouse hover preview?
- UnitControl – Block has encountered an error
- Should I manually resolve WP Core File security issues or await a subsequent WP release?
- Uncaught TypeError: switchEditors.switchto is not a function
- Check if user can in javascript
- Rest API and how to deal with it in server side
- Is it possible to override only a part of another plugin’s / theme’s js (asset) file?
- Gutenberg – dynamically created element: how to set onChange?
- JSX SVG Icon with WordPress
- VisualComposer/WPBakery Page Editor: Is any JS event triggered after the Edition pop-in is shown?
- How do I integrate a codepen?
- Can I just insert JavaScript by using ?
- Gutenberg Edit Block Inspector Controls and save
- JavaScript and Google PageSpeed + wp_enqueue_script
- How to modify a class in load-scripts.js ?
- Trigger a function during onload
- Add Javascript/Html into a WordPress