Javascript – Create, move and remove HTML elements

Javascript – Create, move and remove HTML elements

Create an HTML element To create an HTML element, first you must use createElement(). Then set any values and the style. The last step is to add the created element in the DOM using append(), appendChild(), insertBefore() or innerHTML property. Move an HTML element If you want to move an HTML element you should use append() and appendChild(). This can only happen if you get the element somewhere else in the document. Remove an HTML element You can remove an HTML element using the removeChild(element) method or the innerHTML property…

Javascript – Create, move and remove HTML elements Read More

Install Eclipse and GO

Install Eclipse and GO

Open the terminal, update the system repository index and install wget and openJDK sudo apt update sudo apt install -y wget sudo apt install -y openjdk-8-jdk Then verify the Java version with: java -version Download the Eclipse IDE using a browser here, or using the terminal: wget https://mirrors.dotsrc.org/eclipse//technology/epp/downloads/release/2019-09/R/eclipse-javascript-2019-09-R-linux-gtk-x86_64.tar.gz Now extract the package you have downloaded: sudo tar -xzvf eclipse-javascript-2019-09-R-linux-gtk-x86_64.tar.gz -C /usr/ Create a soft link for the eclipse executable to /usr/bin sudo ln -s /usr/eclipse/eclipse /usr/bin/eclipse Now you can start it by typing eclipse. Install GoClipse plugin Start Eclipse IDE…

Install Eclipse and GO Read More

Movie – The Addams Family

Movie – The Addams Family

Think your family is weird? Categories: Animation, Comedy, Family, Horror, Fantasy /The Addams family’s lives begin to unravel when they face-off against a treacherous, greedy crafty reality-TV host while also preparing for their extended family to arrive for a major celebration. Status: ReleasedIMDbRelease date: 2019-10-10Run time: 105 minute / 1:45Directors: Conrad Vernon, Greg Tiernan.Writers: Matt Lieberman, Pamela Pettler.Production Companies : BermanBraun, cinesite Animation, Metro-Goldwyn-Mayer, Nitrogen Studios CanadaProduction Countries: United Kingdom, Canada, United States of America https://movies.kandz.me/en/movie/481084/The+Addams+Family-2019 Movie – The Addams Family

Movie – The Addams Family Read More

Javascript – DOM API access and change the style and content of an HTML element

Javascript – DOM API access and change the style and content of an HTML element

DOM (Document Object Model) can be used to modify HTML elements and CSS styles on the fly. The DOM API is accessible through the document property. Access HTML elements querySelector(selector) – returns the first element querySelectAll(selector) – returns a collection of HTML elements getElementById(id) – same as querySelector() getElementByTagName(tag) getElementsByClassName() Change the style If you want to modify the style on an element, you have to use the style attribute. Then change the CSS property by removing – and make capital the next letter. Exampes: text-align => textAlign / style.textAlign…

Javascript – DOM API access and change the style and content of an HTML element Read More