The words Under construction in black text on a yellow background with diagonal black stipes surrounding it
I'm in the process of moving my site. It's still a work in progress. Please excuse the mess and broken links.

Insert A New Dynamic Stylesheet Into A Web Document

TODO: Pull subtitle into page object
Pick a card and slip it under the pack

Debugging Stuff

I'm moving stuff around right now. All this below is helping me figure out where to put stuff

        -- title

Insert A New Dynamic Stylesheet Into A Web Document

-- script
-- show
-- title: JavaScript

const sheet = document.createElement("style")
sheet.innerText = `
  .alfa {
    background-color: green;
  }`
document.head.appendChild(sheet)


-- html
-- show: above
-- showtitle: HTML 
-- title: Output

<div class="alfa">
  Pick a card and slip it under the pack
</div>










-- categories
-- JavaScript 
-- CSS 
-- WebDev 

-- metadata
-- date: 2023-09-02 13:39:11
-- id: 2uqodsiu
-- site: aws
-- type: snippet 
-- status: published