About 50 results
Open links in new tab
  1. Window alert () Method - W3Schools

    Description The alert() method displays an alert box with a message and an OK button. The alert() method is used when you want information to come through to the user.

  2. JavaScript Popup Boxes - W3Schools

    Alert Box An alert box is often used if you want to make sure information comes through to the user. When an alert box pops up, the user will have to click "OK" to proceed. Syntax window.alert (" …

  3. W3Schools Tryit Editor

    x <!DOCTYPE html> <html> <body> <h1>The Window Object</h1> <h2>The alert() Method</h2> <p>Click the button to display an alert box.</p> <button onclick="myFunction()">Try it</button> …

  4. Window Object - W3Schools

    The window object represents an open window in a browser. If a document contain frames (<iframe> tags), the browser creates one window object for the HTML document, and one additional window …

  5. JavaScript Output - W3Schools

    You cannot access output devices from JavaScript. The only exception is that you can call the window.print() method in the browser to print the content of the current window.

  6. How To Create an Alert Message Box - W3Schools

    If you have many alert messages on a page, you can add the following script to close different alerts without using the onclick attribute on each <span> element.

  7. W3Schools Tryit Editor

    x <!DOCTYPE html> <html> <body> <h1>The Window Object</h1> <h2>The alert() Method</h2> <p>Click the button to see line-breaks in an alert box.</p> <button onclick="myFunction()">Try …

  8. JavaScript Window - W3Schools

    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.

  9. W3Schools Tryit Editor

    x <!DOCTYPE html> <html> <body> <h2>JavaScript Alert</h2> <button onclick="myFunction()">Try it</button> <script> function myFunction() { alert("I am an alert box!"); } </script> </body> </html>

  10. JavaScript Window Location - W3Schools

    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.