css dom button

Solutions on MaxInterview for css dom button by the best coders in the world

showing results for - "css dom button"
Lorna
25 Mar 2020
1--------------------------------------
2||| My Entire Code Manage Your Self|||
3--------------------------------------
4
5// Part One //
6function CreateButton() {
7
8var linkbtn = document.createElement("a");
9    linkbtn.innerHTML = "Get Account";
10    linkbtn.href = "http://example.com";
11    document.body.appendChild(btn);
12}
13// Part One End //
14
15// Part Two //
16var btn = document.createElement("a");
17btn.innerHTML = "Get Account";
18btn.style.color = "#ffffff";
19btn.style.padding = "15px 20px";
20btn.style.border = "1px solid #ffffff";
21btn.style.backgroundColor = "#307cee";
22btn.style.borderRadius = "30px";
23btn.href = "http://example.com";
24btn.style.textDecoration = "none";
25btn.style.display = "inline - block";
26btn.style.innerHTML = "Underline Removed";
27document.body.appendChild(btn);
28// Part Two Start //