User:Prince(ss) Platinum/Sandbox.js

$('#input-textbox').html(' '); $('#output-textbox').html(' '); $('#stor-buttons').Save&nbs
 * Retrieve');

function saveDoc { var Document = document.getElementById('input-box').value || 'NaN'; if (typeof (Storage) !== "undefined") { localStorage.sandbox = Document; document.getElementById("input-box").value = "Document Saved"; location.reload; } else { document.getElementById("input-box").value = "Please use a modern browser"; } }

function getDoc { if (typeof (Storage) !== "undefined") { document.getElementById("output-box").value = localStorage.sandbox; } else { document.getElementById("output-box").value = "Please use a modern browser"; } }