Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var Prompt = function(prompt){
- var box = document.createElement('textarea');
- box.placeholder = prompt;
- box.style.width = "30vw";
- box.style.height = "60vh";
- box.style.marginTop = "20vh";
- box.style.marginLeft = "35vw";
- box.style.position = "fixed";
- box.style.left = "0";
- box.style.top = "0";
- box.style.zIndex = "9999999";
- box.oninput = function(){
- box.parentNode.removeChild(box);
- changed = true;
- };
- document.body.appendChild(box);
- return box;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement