Difference between revisions of "AoPS Wiki:Sandbox"

(Aoum changed the content model of the page AoPS Wiki:Sandbox from "JavaScript" to "wikitext": Experiment)
(Tag: content model change)
(Cleared sandbox)
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{shortcut|[[A:SAND]]}} {{/header}} [[Category:AoPS Wiki]] <!-- Please do not delete this line -->
+
<noinclude>{{shortcut|[[A:SAND]]}} {{Template:Sandbox}} [[Category:AoPS Wiki]] <!-- Please do not delete this line --></noinclude>
 
 
// Display an alert when the page loads
 
window.onload = function() {
 
    alert("Page content has loaded!");
 
   
 
    // Change the content of a specific element with ID 'example'
 
    var element = document.getElementById("example");
 
    if (element) {
 
        element.innerHTML = "This is dynamically updated content!";
 
    }
 
   
 
    // Add a new button to the page dynamically
 
    var newButton = document.createElement("button");
 
    newButton.innerHTML = "Click Me!";
 
    newButton.onclick = function() {
 
        alert("Button clicked!");
 
    };
 
    document.body.appendChild(newButton);
 
};
 

Latest revision as of 20:40, 13 August 2025

Shortcut:

L Edit this page

This Sandbox page is for experimenting with AoPS Wiki editing.

Feel free to test formatting, links, or templates here. If you're new, you may find the AoPS Wiki editing tutorial helpful.

Note: This page is cleared regularly and without warning. Please do not add offensive, copyrighted, or inappropriate content.