Representing Files in a BrowserWindow

    You can also set the edited state for a window so that the file icon can indicate whether the document in this window has been modified.

    Example

    docs/fiddles/features/represented-file (23.0.0)

    • main.js
    • index.html
    1. <!DOCTYPE html>
    2. <html>
    3. <meta charset="UTF-8">
    4. <title>Hello World!</title>
    5. <link rel="stylesheet" type="text/css" href="./styles.css">
    6. </head>
    7. <body>
    8. <p>
    9. Click on the title with the <pre>Command</pre> or <pre>Control</pre> key pressed.
    10. </p>
    11. </body>
    12. </body>

    Represented file