Skip to content

Commit

Permalink
created session Storage
Browse files Browse the repository at this point in the history
  • Loading branch information
KhatimaSadat authored Jun 6, 2022
1 parent 0902ed6 commit 91c5549
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions main/sessionStorage.js
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 91c5549

Please sign in to comment.