Talk about code development, features, specific bugs, enhancements, patches, and similar things.
Forum rules
Please keep everything here strictly on-topic.
This board is meant for Pale Moon source code development related subjects only like code snippets, patches, specific bugs, git, the repositories, etc.
This is not for tech support! Please do not post tech support questions in the "Development" board!
Please make sure not to use this board for support questions. Please post issues with specific websites, extensions, etc. in the relevant boards for those topics.
Please keep things on-topic as this forum will be used for reference for Pale Moon development. Expect topics that aren't relevant as such to be moved or deleted.
-
LET33T37
- Moongazer

- Posts: 8
- Joined: 2021-05-06, 07:06
Post
by LET33T37 » 2024-06-28, 10:30
Hi, im tring use the new HTML5 <dialog> in my script, but it showing at the bottom instead in the center of the screen, is there something i missing?
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:6.6) Goanna/20240616 PaleMoon/33.2.0
Code: Select all
const test = document.body.appendChild(document.createElement("dialog"));
test.id = "favDialog";
test.innerHTML = `<form method="dialog">
<p><label>Favorite animal:
<select>
<option></option>
<option>Brine shrimp</option>
<option>Red panda</option>
<option>Spider monkey</option>
</select>
</label></p>
<menu>
<button value="cancel">Cancel</button>
<button id="confirmBtn" value="default">Confirm</button>
</menu>
</form>`;
document.getElementById('favDialog').showModal();