Previewing Content Changes In Your Work With document.designMode

You probably already know that you can use developer tools in your browser to make on-the-spot changes to a webpage — simply click the node in the Inspector and make your edits. But have you tried `document.designMode`? Victor Ayomipo explains how it can be used to preview content changes and demonstrates several use cases where it comes in handy for everything from basic content editing to improving team collaboration.

Mar 21, 2025 - 15:07
 0
Previewing Content Changes In Your Work With document.designMode

So, you just deployed a change to your website. Congrats! Everything went according to plan, but now that you look at your work in production, you start questioning your change. Perhaps that change was as simple as a new heading and doesn’t seem to fit the space. Maybe you added an image, but it just doesn’t feel right in that specific context.

What do you do? Do you start deploying more changes? It’s not like you need to crack open Illustrator or Figma to mock up a small change like that, but previewing your changes before deploying them would still be helpful.

Enter document.designMode. It’s not new. In fact, I just recently came across it for the first time and had one of those “Wait, this exists?” moments because it’s a tool we’ve had forever, even in Internet Explorer 6. But for some reason, I’m only now hearing about it, and it turns out that many of my colleagues are also hearing about it for the first time.

What exactly is document.designMode? Perhaps a little video demonstration can help demonstrate how it allows you to make direct edits to a page.

At its simplest, document.designMode makes webpages editable, similar to a text editor. I’d say it’s like having an edit mode for the web — one can click anywhere on a webpage to modify existing text, move stuff around, and even delete elements. It’s like having Apple’s “Distraction Control” feature at your beck and call.

I think this is a useful tool for developers, designers, clients, and regular users alike.

You might be wondering if this is just like contentEditable because, at a glance, they both look similar. But no, the two serve different purposes. contentEditable is more focused on making a specific element editable, while document.designMode makes the whole page editable. How To Enable document.designMode In DevTools

Enabling document.designMode can be done in the browser’s developer tools:

  1. Right-click anywhere on a webpage and click Inspect.
  2. Click the Console tab.
  3. Type document.designMode = "on" and press Enter.

To turn it off, refresh the page. That’s it.

Another method is to create a bookmark that activates the mode when clicked:

  1. Create a new bookmark in your browser.
  2. You can name it whatever, e.g., “EDIT_MODE”.
  3. Input this code in the URL field:
javascript:(function(){document.designMode = document.designMode === 'on' ? 'off' : 'on';})();

And now you have a switch that toggles document.designMode on and off. Use Cases

There are many interesting, creative, and useful ways to use this tool.

Basic Content Editing

I dare say this is the core purpose of document.designMode, which is essentially editing any text element of a webpage for whatever reason. It could be the headings, paragraphs, or even bullet points. Whatever the case, your browser effectively becomes a “What You See Is What You Get” (WYSIWYG) editor, where you can make and preview changes on the spot.

Landing Page A/B Testing

Let’s say we have a product website with an existing copy, but then you check out your competitors, and their copy looks more appealing. Naturally, you’d want to test it out. Instead of editing on the back end or taking notes for later, you can use document.designMode to immediately see how that copy variation would fit into the landing page layout and then easily compare and contrast the two versions.

This could also be useful for copywriters or solo developers.

SEO Title And Meta Description

Everyone wants their website to rank at the top of search results because that means more traffic. However, as broad as SEO is as a practice, the </code> tag and <code><meta></code> description is a website’s first impression in search results, both for visitors and search engines, as they can make or break the click-through rate. <p>The question that arises is, how do you know if certain text gets cut off in search results? I think <code>document.designMode</code> can fix that before pushing it live. <p>With this tool, I think it’d be a lot easier to see how different title lengths look when truncated, whether the keywords are instantly visible, and how compelling it’d be compared to other competitors on the same search result. <h3>Developer Workflows</h3> <p>To be completely honest, developers probably won’t want to use <code>document.designMode</code> for actual development work. However, it can still be handy for breaking stuff on a website, moving elements around, repositioning images, deleting UI elements, and undoing what was deleted, all in real time. <p>This could help if you’re skeptical about the position of an element or feel a button might do better at the top than at the bottom; <code>document.designMode</code> sure could help. It sure beats rearranging elements in the codebase just to determine if an element positioned differently would look good. But again, most of the time, we’re developing in a local environment where these things can be done just as effectively, so your mileage may vary as far as how useful you find <code>document.designMode</code> in your development work. <h3>Client And Team Collaboration</h3> <p>It is a no-brainer that some clients almost always have last-minute change requests — stuff like <em>“Can we remove this button?”</em> or <em>“Let’s edit the pricing features in the free tier.”</em> <p>To the client, these are just little tweaks, but to you, it could be a hassle to start up your development environment to make those changes. I believe <code>document.designMode</code> can assist in such cases by making those changes in seconds without touching production and sharing screenshots with the client. <p>It could also become useful in <strong>team meetings when discussing UI changes</strong>. Seeing changes in real-time through screen sharing can help facilitate discussion and lead to quicker conclusions. <h3>Live DOM Tutorials</h3> <p>For beginners learning web development, I feel like <code>document.designMode</code> can help provide a first look at how it feels to manipulate a webpage and immediately see the results — sort of like <strong>a pre-web development stage</strong>, even before touching a code editor. <p>As learners experiment with moving things around, an instructor can explain how each change works and affects the flow of the page. <h3>Social Media Content Preview</h3> <p>We can use the same idea to preview social media posts before publishing them! For instance, <code>document.designMode</code> can gauge the effectiveness of different call-to-action phrases or visualize how ad copy would look when users stumble upon it when scrolling through the platform. This would be effective on any social media platform. <h3>Memes</h3> <p>I didn’t think it’d be fair not to add this. It might seem out of place, but let’s be frank: creating memes is probably one of the first things that comes to mind when anyone discovers <code>document.designMode</code>. <p>You can create parody versions of social posts, tweak article headlines, change product prices, and manipulate YouTube views or Reddit comments, just to name a few of the ways you could meme things. Just remember: this shouldn’t be used to spread false information or cause actual harm. Please keep it respectful and ethical! Conclusion <p><code>document.designMode = "on"</code> is one of those delightful browser tricks that can be immediately useful when you discover it for the first time. It’s a raw and primitive tool, but you can’t deny its utility and purpose. <p>So, give it a try, show it to your colleagues, or even edit this article. You never know when it might be exactly what you need. <h3>Further Reading</h3> <ul> <li>“<a href="https://www.smashingmagazine.com/2024/12/new-front-end-features-for-designers-in-2025/">New Front-End Features For Designers In 2025</a>,” Cosima Mielke</li> <li>“<a href="https://www.smashingmagazine.com/2023/06/popular-devtools-tips/">Useful DevTools Tips and Tricks</a>,” Patrick Brosset</li> <li>“<a href="https://www.smashingmagazine.com/2024/06/css-tips-and-techniques/">Useful CSS Tips And Techniques</a>,” Cosima Mielke</li> </ul> </div> <div class="d-flex flex-row-reverse mt-4"> <a href="https://smashingmagazine.com/2025/03/previewing-content-changes-work-documentdesignmode/" class="btn btn-md btn-custom" target="_blank" rel="nofollow"> Read More <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="m-l-5" viewBox="0 0 16 16"> <path fill-rule="evenodd" d="M1 8a.5.5 0 0 1 .5-.5h11.793l-3.147-3.146a.5.5 0 0 1 .708-.708l4 4a.5.5 0 0 1 0 .708l-4 4a.5.5 0 0 1-.708-.708L13.293 8.5H1.5A.5.5 0 0 1 1 8z"/> </svg> </a> </div> <div class="d-flex flex-row post-tags align-items-center mt-5"> <h2 class="title">Tags:</h2> <ul class="d-flex flex-row"> </ul> </div> <div class="post-next-prev mt-5"> <div class="row"> <div class="col-sm-6 col-xs-12 left"> <div class="head-title text-end"> <a href="https://newsworldstream.com/pro-sports-photographer-takes-a-fujifilm-instax-to-mlb-spring-training"> <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-arrow-left" viewBox="0 0 16 16"> <path fill-rule="evenodd" d="M15 8a.5.5 0 0 0-.5-.5H2.707l3.147-3.146a.5.5 0 1 0-.708-.708l-4 4a.5.5 0 0 0 0 .708l4 4a.5.5 0 0 0 .708-.708L2.707 8.5H14.5A.5.5 0 0 0 15 8z"/> </svg> Previous Article </a> </div> <h3 class="title text-end"> <a href="https://newsworldstream.com/pro-sports-photographer-takes-a-fujifilm-instax-to-mlb-spring-training">Pro Sports Photographer Takes a Fujifilm Instax to MLB Spring Training</a> </h3> </div> <div class="col-sm-6 col-xs-12 right"> <div class="head-title text-start"> <a href="https://newsworldstream.com/every-fashionable-woman-in-los-angeles-paris-and-new-york-owns-a-bag-in-this-specific-color"> Next Article <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-arrow-right" viewBox="0 0 16 16"> <path fill-rule="evenodd" d="M1 8a.5.5 0 0 1 .5-.5h11.793l-3.147-3.146a.5.5 0 0 1 .708-.708l4 4a.5.5 0 0 1 0 .708l-4 4a.5.5 0 0 1-.708-.708L13.293 8.5H1.5A.5.5 0 0 1 1 8z"/> </svg> </a> </div> <h3 class="title text-start"> <a href="https://newsworldstream.com/every-fashionable-woman-in-los-angeles-paris-and-new-york-owns-a-bag-in-this-specific-color">Every Fashionable Woman in Los Angeles, Paris, and New York Owns a Bag in This S...</a> </h3> </div> </div> </div> <section class="section section-related-posts mt-5"> <div class="row"> <div class="col-12"> <div class="section-title"> <div class="d-flex justify-content-between align-items-center"> <h3 class="title">Related Posts</h3> </div> </div> <div class="section-content"> <div class="row"> <div class="col-sm-12 col-md-6 col-lg-4"> <div class="post-item"> <div class="image ratio"> <a href="https://newsworldstream.com/antao-basins-by-kaschkasch-for-villeroy-boch"> <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAcIAAAEYAQMAAAD1c2RPAAAAA1BMVEUAAACnej3aAAAAAXRSTlMAQObYZgAAACVJREFUaN7twQEBAAAAgqD+r26IwAAAAAAAAAAAAAAAAAAAACDoP3AAASZRMyIAAAAASUVORK5CYII=" data-src="http://static.dezeen.com/uploads/2025/03/antao-basins-villeroy-bosch-dezeen-showroom_dezeen_2364_col_1-411x411.jpg?#" alt="Antao basins by KaschKasch for Villeroy & Boch" class="img-fluid lazyload" width="269" height="160"/> </a> </div> <h3 class="title fsize-16"><a href="https://newsworldstream.com/antao-basins-by-kaschkasch-for-villeroy-boch">Antao basins by KaschKasch for Villeroy & Boch</a></h3> <p class="small-post-meta"> <span>Mar 21, 2025</span> <span><i class="icon-comment"></i> 0</span> </p> </div> </div> <div class="col-sm-12 col-md-6 col-lg-4"> <div class="post-item"> <div class="image ratio"> <a href="https://newsworldstream.com/kylie-jenner-just-wore-taylor-swifts-favorite-skirt-trend-to-the-chanel-show-in-paris"> <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAcIAAAEYAQMAAAD1c2RPAAAAA1BMVEUAAACnej3aAAAAAXRSTlMAQObYZgAAACVJREFUaN7twQEBAAAAgqD+r26IwAAAAAAAAAAAAAAAAAAAACDoP3AAASZRMyIAAAAASUVORK5CYII=" data-src="https://cdn.mos.cms.futurecdn.net/7YcRC4U7Kunbqhr5Fb3yTa.jpg?#" alt="Kylie Jenner Just Wore Taylor Swift's Favorite Skirt Trend to the Chanel Show in Paris" class="img-fluid lazyload" width="269" height="160"/> </a> </div> <h3 class="title fsize-16"><a href="https://newsworldstream.com/kylie-jenner-just-wore-taylor-swifts-favorite-skirt-trend-to-the-chanel-show-in-paris">Kylie Jenner Just Wore Taylor Swift's Favorite Skirt Tr...</a></h3> <p class="small-post-meta"> <span>Jan 29, 2025</span> <span><i class="icon-comment"></i> 0</span> </p> </div> </div> <div class="col-sm-12 col-md-6 col-lg-4"> <div class="post-item"> <div class="image ratio"> <a href="https://newsworldstream.com/menorca-farmhouse-converted-into-vacation-home-with-acid-yellow-kitchen"> <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAcIAAAEYAQMAAAD1c2RPAAAAA1BMVEUAAACnej3aAAAAAXRSTlMAQObYZgAAACVJREFUaN7twQEBAAAAgqD+r26IwAAAAAAAAAAAAAAAAAAAACDoP3AAASZRMyIAAAAASUVORK5CYII=" data-src="http://static.dezeen.com/uploads/2025/01/estancia-san-jose-atelier-du-pont-_dezeen_2364_sq_0-411x411.jpg?#" alt="Menorca farmhouse converted into vacation home with acid-yellow kitchen" class="img-fluid lazyload" width="269" height="160"/> </a> </div> <h3 class="title fsize-16"><a href="https://newsworldstream.com/menorca-farmhouse-converted-into-vacation-home-with-acid-yellow-kitchen">Menorca farmhouse converted into vacation home with aci...</a></h3> <p class="small-post-meta"> <span>Jan 27, 2025</span> <span><i class="icon-comment"></i> 0</span> </p> </div> </div> </div> </div> </div> </div> </section> <section class="section section-comments mt-5"> <div class="row"> <div class="col-12"> <div class="nav nav-tabs" id="navTabsComment" role="tablist"> <button class="nav-link active" data-bs-toggle="tab" data-bs-target="#navComments" type="button" role="tab">Comments</button> </div> <div class="tab-content" id="navTabsComment"> <div class="tab-pane fade show active" id="navComments" role="tabpanel" aria-labelledby="nav-home-tab"> <form id="add_comment"> <input type="hidden" name="parent_id" value="0"> <input type="hidden" name="post_id" value="1635135"> <div class="form-row"> <div class="row"> <div class="form-group col-md-6"> <label>Name</label> <input type="text" name="name" class="form-control form-input" maxlength="40" placeholder="Name"> </div> <div class="form-group col-md-6"> <label>Email</label> <input type="email" name="email" class="form-control form-input" maxlength="100" placeholder="Email"> </div> </div> </div> <div class="form-group"> <label>Comment</label> <textarea name="comment" class="form-control form-input form-textarea" maxlength="4999" placeholder="Leave your comment..."></textarea> </div> <div class="form-group"> <script src="https://www.google.com/recaptcha/api.js?hl=en"></script><div class="g-recaptcha" data-sitekey="6LdPZ7IqAAAAAHccklF1YxzrgBnZ-2f6Qklxx6kB" data-theme="dark"></div> </div> <button type="submit" class="btn btn-md btn-custom">Post Comment</button> </form> <div id="message-comment-result" class="message-comment-result"></div> <div id="comment-result"> <input type="hidden" value="5" id="post_comment_limit"> <div class="row"> <div class="col-sm-12"> <div class="comments"> <ul class="comment-list"> </ul> </div> </div> </div> </div> </div> </div> </div> </div> </section> </div> </div> <div class="col-md-12 col-lg-4"> <div class="col-sidebar sticky-lg-top"> <div class="row"> <div class="col-12"> <div class="sidebar-widget"> <div class="widget-head"><h4 class="title">Popular Posts</h4></div> <div class="widget-body"> <div class="row"> <div class="col-12"> <div class="tbl-container post-item-small"> <div class="tbl-cell left"> <div class="image"> <a href="https://newsworldstream.com/peta-calls-to-end-groundhog-day-tradition-replace-punxsutawney-phil-with-vegan-weather-reveal-cake"> <img src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==" data-src="https://a57.foxnews.com/static.foxnews.com/foxnews.com/content/uploads/2025/01/931/523/copy-of-right-inset-7.png?ve=1&tl=1#" alt="PETA calls to end Groundhog Day tradition, replace Punxsutawney Phil with 'vegan weather reveal cake'" class="img-fluid lazyload" width="130" height="91"/> </a> </div> </div> <div class="tbl-cell right"> <h3 class="title"><a href="https://newsworldstream.com/peta-calls-to-end-groundhog-day-tradition-replace-punxsutawney-phil-with-vegan-weather-reveal-cake">PETA calls to end Groundhog Day tradition, replace...</a></h3> <p class="small-post-meta"> <span>Jan 28, 2025</span> <span><i class="icon-comment"></i> 0</span> </p> </div> </div> </div> <div class="col-12"> <div class="tbl-container post-item-small"> <div class="tbl-cell left"> <div class="image"> <a href="https://newsworldstream.com/get-more-leads-more-customers-more-revenue-the-power-of-email-list-builders-74"> <img src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==" data-src="https://www.dewassoc.com/wp-content/uploads/2024/03/Email-List-Builder.webp" alt="Get More Leads, More Customers, More Revenue ─ The Power of Email List Builders" class="img-fluid lazyload" width="130" height="91"/> </a> </div> </div> <div class="tbl-cell right"> <h3 class="title"><a href="https://newsworldstream.com/get-more-leads-more-customers-more-revenue-the-power-of-email-list-builders-74">Get More Leads, More Customers, More Revenue ─ The...</a></h3> <p class="small-post-meta"> <span>Jan 26, 2025</span> <span><i class="icon-comment"></i> 0</span> </p> </div> </div> </div> <div class="col-12"> <div class="tbl-container post-item-small"> <div class="tbl-cell left"> <div class="image"> <a href="https://newsworldstream.com/2025-brier-scores-standings-and-schedule"> <img src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==" data-src="https://www.sportsnet.ca/wp-content/uploads/2025/02/gushue_brad1280.jpg?#" alt="2025 Brier: Scores, standings and schedule" class="img-fluid lazyload" width="130" height="91"/> </a> </div> </div> <div class="tbl-cell right"> <h3 class="title"><a href="https://newsworldstream.com/2025-brier-scores-standings-and-schedule">2025 Brier: Scores, standings and schedule</a></h3> <p class="small-post-meta"> <span>Mar 1, 2025</span> <span><i class="icon-comment"></i> 0</span> </p> </div> </div> </div> <div class="col-12"> <div class="tbl-container post-item-small"> <div class="tbl-cell left"> <div class="image"> <a href="https://newsworldstream.com/california-sheriff-puts-accused-hardened-criminals-to-work-at-taxpayers-benefit"> <img src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==" data-src="https://a57.foxnews.com/static.foxnews.com/foxnews.com/content/uploads/2025/02/931/523/072518-egg-production_6866-scaled.jpg?ve=1&tl=1#" alt="California sheriff puts accused hardened criminals to work at taxpayers’ benefit" class="img-fluid lazyload" width="130" height="91"/> </a> </div> </div> <div class="tbl-cell right"> <h3 class="title"><a href="https://newsworldstream.com/california-sheriff-puts-accused-hardened-criminals-to-work-at-taxpayers-benefit">California sheriff puts accused hardened criminals...</a></h3> <p class="small-post-meta"> <span>Feb 24, 2025</span> <span><i class="icon-comment"></i> 0</span> </p> </div> </div> </div> <div class="col-12"> <div class="tbl-container post-item-small"> <div class="tbl-cell left"> <div class="image"> <a href="https://newsworldstream.com/how-to-integrate-custom-authentication-from-your-existing-website-using-flarum-api-flarum-sso-and-js-cookie"> <img src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==" data-src="https://media2.dev.to/dynamic/image/width%3D1000,height%3D500,fit%3Dcover,gravity%3Dauto,format%3Dauto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fuq0z1xtwsjh4rnwzt883.png" alt="How to Integrate Custom Authentication from Your Existing Website Using Flarum API, Flarum-SSO, and JS-Cookie" class="img-fluid lazyload" width="130" height="91"/> </a> </div> </div> <div class="tbl-cell right"> <h3 class="title"><a href="https://newsworldstream.com/how-to-integrate-custom-authentication-from-your-existing-website-using-flarum-api-flarum-sso-and-js-cookie">How to Integrate Custom Authentication from Your E...</a></h3> <p class="small-post-meta"> <span>Feb 14, 2025</span> <span><i class="icon-comment"></i> 0</span> </p> </div> </div> </div> </div> </div> </div> <div class="sidebar-widget"> <div class="widget-head"><h4 class="title">Recommended Posts</h4></div> <div class="widget-body"> <div class="row"> <div class="col-12"> <div class="tbl-container post-item-small post-item-no-image"> <div class="tbl-cell right"> <h3 class="title"><a href="https://newsworldstream.com/a-comprehensive-guide-to-business-setup-in-saudi-arabia">A Comprehensive Guide to Business Setup in Saudi A...</a></h3> <p class="small-post-meta"> <span>Jan 30, 2025</span> <span><i class="icon-comment"></i> 1</span> </p> </div> </div> </div> <div class="col-12"> <div class="tbl-container post-item-small"> <div class="tbl-cell left"> <div class="image"> <a href="https://newsworldstream.com/Computer-Vision-as-a-Service-CVaaS"> <img src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==" data-src="https://macgence.com/wp-content/uploads/2025/01/Computer-Vision-as-a-Service-CVaaS.png" alt="Computer Vision as a Service (CVaaS): Redefining AI Innovation" class="img-fluid lazyload" width="130" height="91"/> </a> </div> </div> <div class="tbl-cell right"> <h3 class="title"><a href="https://newsworldstream.com/Computer-Vision-as-a-Service-CVaaS">Computer Vision as a Service (CVaaS): Redefining A...</a></h3> <p class="small-post-meta"> <span>Jan 29, 2025</span> <span><i class="icon-comment"></i> 0</span> </p> </div> </div> </div> <div class="col-12"> <div class="tbl-container post-item-small"> <div class="tbl-cell left"> <div class="image"> <a href="https://newsworldstream.com/Why-Domain-Specific-Data-Matters-for-AI-Agents"> <img src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==" data-src="https://macgence.com/wp-content/uploads/2025/01/Domain-Specific-Data-for-AI-Agents.png" alt="Why Domain-Specific Data Matters for AI Agents" class="img-fluid lazyload" width="130" height="91"/> </a> </div> </div> <div class="tbl-cell right"> <h3 class="title"><a href="https://newsworldstream.com/Why-Domain-Specific-Data-Matters-for-AI-Agents">Why Domain-Specific Data Matters for AI Agents</a></h3> <p class="small-post-meta"> <span>Jan 28, 2025</span> <span><i class="icon-comment"></i> 0</span> </p> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </section> <style> .post-text img { display: none !important; } .post-content .post-summary { display: none; } </style> <script type="application/ld+json">[{ "@context": "http://schema.org", "@type": "Organization", "url": "https://newsworldstream.com", "logo": {"@type": "ImageObject","width": 190,"height": 60,"url": "https://newsworldstream.com/assets/img/logo.svg"},"sameAs": [] }, { "@context": "http://schema.org", "@type": "WebSite", "url": "https://newsworldstream.com", "potentialAction": { "@type": "SearchAction", "target": "https://newsworldstream.com/search?q={search_term_string}", "query-input": "required name=search_term_string" } }] </script> <script type="application/ld+json"> { "@context": "https://schema.org", "@type": "NewsArticle", "mainEntityOfPage": { "@type": "WebPage", "@id": "https://newsworldstream.com/previewing-content-changes-in-your-work-withdocumentdesignmode" }, "headline": "Previewing Content Changes In Your Work With document.designMode", "name": "Previewing Content Changes In Your Work With document.designMode", "articleSection": "Design", "image": { "@type": "ImageObject", "url": "http://files.smashing.media/articles/previewing-content-changes-work-documentdesignmode/previewing-content-changes-work-documentdesignmode.jpg?#", "width": 750, "height": 500 }, "datePublished": "2025-03-21T15:07:10+0100", "dateModified": "2025-03-21T15:07:10+0100", "inLanguage": "en", "keywords": "Previewing, Content, Changes, Your, Work, With document.designMode", "author": { "@type": "Person", "name": "tedwalid" }, "publisher": { "@type": "Organization", "name": "NewsWorldStream", "logo": { "@type": "ImageObject", "width": 190, "height": 60, "url": "https://newsworldstream.com/assets/img/logo.svg" } }, "description": "You probably already know that you can use developer tools in your browser to make on-the-spot changes to a webpage — simply click the node in the Inspector and make your edits. But have you tried `document.designMode`? Victor Ayomipo explains how it can be used to preview content changes and demonstrates several use cases where it comes in handy for everything from basic content editing to improving team collaboration." } </script> <footer id="footer"> <div class="footer-inner"> <div class="container-xl"> <div class="row justify-content-between"> <div class="col-sm-12 col-md-6 col-lg-4 footer-widget footer-widget-about"> <div class="footer-logo"> <img src="https://newsworldstream.com/assets/img/logo-footer.svg" alt="logo" class="logo" width="240" height="90"> </div> <div class="footer-about"> NewsWorldStream provides you with real-time access to the latest global news from various sources in all available languages. Stay updated on world events, all in one place. </div> </div> <div class="col-sm-12 col-md-6 col-lg-4 footer-widget"> <h4 class="widget-title">Most Viewed Posts</h4> <div class="footer-posts"> <div class="tbl-container post-item-small"> <div class="tbl-cell left"> <div class="image"> <a href="https://newsworldstream.com/glenn-close-grapples-with-ai-threat-in-hollywood-what-is-going-to-be-truth"> <img src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==" data-src="https://nypost.com/wp-content/uploads/sites/2/2025/01/glenn-close-sundance-film-festival-97288899.jpg?w=1024#" alt="Glenn Close grapples with AI threat in Hollywood: ‘What is going to be truth?’" class="img-fluid lazyload" width="130" height="91"/> </a> </div> </div> <div class="tbl-cell right"> <h3 class="title"><a href="https://newsworldstream.com/glenn-close-grapples-with-ai-threat-in-hollywood-what-is-going-to-be-truth">Glenn Close grapples with AI threat in Hollywood: ...</a></h3> <p class="small-post-meta"> <span>Jan 27, 2025</span> <span><i class="icon-comment"></i> 0</span> </p> </div> </div> <div class="tbl-container post-item-small"> <div class="tbl-cell left"> <div class="image"> <a href="https://newsworldstream.com/peta-calls-to-end-groundhog-day-tradition-replace-punxsutawney-phil-with-vegan-weather-reveal-cake"> <img src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==" data-src="https://a57.foxnews.com/static.foxnews.com/foxnews.com/content/uploads/2025/01/931/523/copy-of-right-inset-7.png?ve=1&tl=1#" alt="PETA calls to end Groundhog Day tradition, replace Punxsutawney Phil with 'vegan weather reveal cake'" class="img-fluid lazyload" width="130" height="91"/> </a> </div> </div> <div class="tbl-cell right"> <h3 class="title"><a href="https://newsworldstream.com/peta-calls-to-end-groundhog-day-tradition-replace-punxsutawney-phil-with-vegan-weather-reveal-cake">PETA calls to end Groundhog Day tradition, replace...</a></h3> <p class="small-post-meta"> <span>Jan 28, 2025</span> <span><i class="icon-comment"></i> 0</span> </p> </div> </div> <div class="tbl-container post-item-small"> <div class="tbl-cell left"> <div class="image"> <a href="https://newsworldstream.com/non-sanctuary-coastal-enclave-sues-california-for-right-to-enforce-its-own-laws"> <img src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==" data-src="https://a57.foxnews.com/static.foxnews.com/foxnews.com/content/uploads/2025/01/931/523/huntington-beach.jpg?ve=1&tl=1#" alt="'Non-sanctuary' coastal enclave sues California for right to enforce its own laws" class="img-fluid lazyload" width="130" height="91"/> </a> </div> </div> <div class="tbl-cell right"> <h3 class="title"><a href="https://newsworldstream.com/non-sanctuary-coastal-enclave-sues-california-for-right-to-enforce-its-own-laws">'Non-sanctuary' coastal enclave sues California fo...</a></h3> <p class="small-post-meta"> <span>Jan 28, 2025</span> <span><i class="icon-comment"></i> 0</span> </p> </div> </div> </div> </div> <div class="col-sm-12 col-md-6 col-lg-4 footer-widget"> <h4 class="widget-title">Newsletter</h4> <div class="newsletter"> <p class="description">Join our subscribers list to get the latest news, updates and special offers directly in your inbox</p> <form id="form_newsletter_footer" class="form-newsletter"> <div class="newsletter-inputs"> <input type="email" name="email" class="form-control form-input newsletter-input" maxlength="199" placeholder="Email"> <button type="submit" name="submit" value="form" class="btn btn-custom newsletter-button">Subscribe</button> </div> <input type="text" name="url"> <div id="form_newsletter_response"></div> </form> </div> <div class="footer-social-links"> <ul> </ul> </div> </div> </div> </div> </div> <div class="footer-copyright"> <div class="container-xl"> <div class="row align-items-center"> <div class="col-sm-12 col-md-6"> <div class="copyright text-start"> Copyright 2025 NewsWorldStream.com - All Rights Reserved </div> </div> <div class="col-sm-12 col-md-6"> <div class="nav-footer text-end"> <ul> <li><a href="https://newsworldstream.com/publish-with-us">Publish With Us </a></li> <li><a href="https://newsworldstream.com/terms-conditions">Terms & Conditions </a></li> <li><a href="https://newsworldstream.com/news-source">News Source </a></li> <li><a href="https://newsworldstream.com/cookies-policy">Cookies Policy </a></li> <li><a href="https://newsworldstream.com/privacy-policy">Privacy Policy </a></li> <li><a href="https://newsworldstream.com/download-app">Download App </a></li> <li><a href="https://newsworldstream.com/delete-your-account">Delete Your Account </a></li> </ul> </div> </div> </div> </div> </div> </footer> <a href="#" class="scrollup"><i class="icon-arrow-up"></i></a> <div class="cookies-warning"> <button type="button" aria-label="close" class="close" onclick="closeCookiesWarning();"> <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor" class="bi bi-x" viewBox="0 0 16 16"> <path d="M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z"/> </svg> </button> <div class="text"> <p>This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies.</p> </div> <button type="button" class="btn btn-md btn-block btn-custom" aria-label="close" onclick="closeCookiesWarning();">Accept Cookies</button> </div> <script src="https://newsworldstream.com/assets/themes/magazine/js/jquery-3.6.1.min.js "></script> <script src="https://newsworldstream.com/assets/vendor/bootstrap/js/bootstrap.bundle.min.js "></script> <script src="https://newsworldstream.com/assets/themes/magazine/js/plugins-2.3.js "></script> <script src="https://newsworldstream.com/assets/themes/magazine/js/script-2.3.min.js "></script> <script>$("form[method='post']").append("<input type='hidden' name='sys_lang_id' value='1'>");</script> <script>if ('serviceWorker' in navigator) {window.addEventListener('load', function () {navigator.serviceWorker.register('https://newsworldstream.com/pwa-sw.js').then(function (registration) {}, function (err) {console.log('ServiceWorker registration failed: ', err);}).catch(function (err) {console.log(err);});});} else {console.log('service worker is not supported');}</script> <!-- Matomo --> <script> var _paq = window._paq = window._paq || []; /* tracker methods like "setCustomDimension" should be called before "trackPageView" */ _paq.push(['trackPageView']); _paq.push(['enableLinkTracking']); (function() { var u="//analytics.djaz.one/"; _paq.push(['setTrackerUrl', u+'matomo.php']); _paq.push(['setSiteId', '24']); var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s); })(); </script> <!-- End Matomo Code --> </body> </html>