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

Ubuntu 18.04 – Change file ownership

Screenshot 20190213 220535

You can change file owner and group with chown. Changes the owner of the xab file to root. Changes the owner of the xac file to root, and its group to root sudo chown root:root xtest/ -R Changes the owner of the directory and the files inside this directory to root and their group to root THE END!!! Ubuntu 18.04 – Change file permissions Ubuntu 18.04 – file permissions Ubuntu 18.04 – Your first shell script Ubuntu 18.04 – Change file ownership

Ubuntu 18.04 – Change file ownership Read More

Ubuntu 18.04 – Change file permissions

Screenshot 20190205 094401

Change permissions If you want to change permissions you need to use chmod. File permissions explained in this post. You can change permissions using characters or number. Let’s see the chmod options for the permissions: read – r or 4 write – w or 2 execute – x or 1 chmod options for user: owner – u group – g other – o all – a or ugo chmod options for actions: add permission – + remove permission – – set permission – = Examples with character options a+x =…

Ubuntu 18.04 – Change file permissions Read More

Windows 10 – Change Desktop’s Background

Screenshot 20190110 082019

If you want to change the background image, then right-click the desktop(not on an icon). You will see the following context menu. Click Personalize. You will see the Settings. If you click the drop-down list below background, you can decide what you want for background. You can have a picture, Solid colour or Slide show. Picture – You can just select on from the list you see or click Browse to add your Solid colour – Choose one color from the list or click + to add a custom colour. Slideshow…

Windows 10 – Change Desktop’s Background Read More

Windows 10 – Change user password

Screenshot 20190105 093804

Open Windows Settings(press Windows + I). Click Accounts. On the left panel click Sign-in options Find Password and then click Change Type your existing password and click Next. Now type your new password twice, one on New password and one on Re-enter password. Now type a password hint, a hint that it will remind you what is your password. Click Next. Click Finish and remember to use your new password next time you sign in. Virtual Desktops Windows 10 – Change user password

Windows 10 – Change user password Read More