User:Ultimate Dark Carnage/Sandbox8.js

window.onload = function{ var x = document.getElementsByClassName('insertusername'); for (var e; e < x.length; e++){ x[e].innerHTML = wgUserName; } };

function openTestModal{ var modalHTML = '' + '' + '' + ' ' +          ' Test ' + '' + ' ' +                  '' + '' + ' Test Form ' + ' This is the test form. You can try this form out. ' +                          ' ' +                       ' ' +                   ' ' +                   ' ' +                       'Cancel' + 'Submit' + ' ' +              ' ' +           ' ' +       ' ' +       ' ';    function closeDialog(dialog_id){ var dialog = $('#' + dialog_id); dialog.remove; $('.blackout').remove; } }