From 91c5549d5100d3ca5daa7526ee01c0f3ce045311 Mon Sep 17 00:00:00 2001 From: Khatima Sadat <86257958+KhatimaSadat@users.noreply.github.com> Date: Sun, 5 Jun 2022 22:42:06 -0700 Subject: [PATCH] created session Storage --- main/sessionStorage.js | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 main/sessionStorage.js diff --git a/main/sessionStorage.js b/main/sessionStorage.js new file mode 100644 index 0000000..30fc403 --- /dev/null +++ b/main/sessionStorage.js @@ -0,0 +1,9 @@ +sessionStorage.setItem("uni" ,"Kandahr university"); +sessionStorage.setItem("lfaculty" ,"CS") +sessionStorage.setItem("subject", "Networking") +var user= sessionStorage.getItem("uni"); + +document.getElementById("idOf").innerHTML="University:"+user; +//sessionStorage.removeItem("faculty"); +//sessionStorage.clear(); +//cookies