Great Deal! Get Instant $10 FREE in Account on First Order + 10% Cashback on Every Order Order Now

https://domfu.com/app5/db/persistOverview/#persist0 Follow the instruction on the above URL and write javaScript/HTML codes for each of the topics below. Please associate each topic with it’s code,...

1 answer below »
https:
domfu.com/app5/d
persistOverview/#persist0
Follow the instruction on the above URL and write javaScript/HTML codes for each of the topics below. Please associate each topic with it’s code, for example URLs (code), Applications of what you can do with this knowledge(code) etc etc.
URLs
Applications of what you can do with this knowledge
localStorage
Applications/Cookies
Application/indexedDB
Answered Same Day May 30, 2021

Solution

Umakant answered on Jun 01 2021
138 Votes
URL
    
!DOCTYPE html
html
ody
h2>URL Example:
h2
p id="getNameParam"
p
p id="getName2Param"
p
script
document.getElementById("getNameParam").innerHTML = getUrlParameter('name');
document.getElementById("getName2Param").innerHTML = getUrlParameter('name2');
function getUrlParameter(name) {
name = name.replace(/[\[]/, '\\[').replace(/[\]]/, '\\]');
var regex = new RegExp('[\\?&]' + name + '=([^&#]*)');
var results = regex.exec(location.search);
return results === null ? '' : decodeURIComponent(results[1].replace(/\+/g, ' '));
};
script
ody
html
Applications of what you can do with this knowledge:
We can pass data between client and server by using either GET or POST method. By using GET method, we pass the data using URL using key and value. We get the value from this URL like student Id, report name and so on. By using this value, we redirect the page according to this value.
    html
head
style
html {
scroll-behavior: smooth;
}
style
head
ody
a href="#myLink"> Scroll...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here