Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var x = prompt("Object?");
- x = x.toLowerCase();
- if (x === "window") {
- x = window;
- load_table();
- } else if (window[x]) {
- x = window[x];
- load_table();
- } else if (x[0] === "t" && x[1] === "h" && x[2] === "i" && x[3] === "s" && x[4] === ".") {
- x = x.split('.');
- x = x[1];
- load_table();
- } else {
- document.write("Error Message.");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement