-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
63 lines (46 loc) · 1.44 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
const main=document.createElement("div");
main.id="main";
const text=document.createElement("h3");
text.id="text";
text.innerText="hello world";
const p1=document.createElement("p");
p1.id="p1";
p1.innerText="today are learnind javascsript";
const hash=document.createElement("p");
hash.id="hash";
hash.innerText="#make progress";
const java=document.createElement("h1");
java.id="java";
java.innerHTML="javascsriptis powerfull";
const link=document.createElement("a");
link.id="link";
link.innerText="youtube";
link.href="www.youtube.com";
main.appendChild( text);
main.appendChild(p1);
main.appendChild(hash );
main.appendChild(java );
let black= document.getElementById("black");
let today = new Date();
black.innerHTML=today;
let birthdate=new Date ("2005-04-16");
black.innerHTML=birthdate;
let website =window.location.href;
let address= document.getElementById("address")
address.innerHTML= website;
website =window.location.host;
address= document.getElementById("address");
address.innerHTML= website;
website =window.location.protocol;
address= document.getElementById("address");
address.innerHTML= website;
website =window.location.port;
address= document.getElementById("address");
address.innerHTML= website;
let history=window.history.length;
let back= document.getElementById("back");
back.innerHTML= history;
window.alert("hello class");
window.location.href="www.instagram.com";
Window.location.replace("www.twitter.com")
// today