ਸਮੱਗਰੀ 'ਤੇ ਜਾਓ

ਵਰਤੋਂਕਾਰ:Manveerburj/common.js

ਵਿਕੀਪੀਡੀਆ, ਇੱਕ ਆਜ਼ਾਦ ਵਿਸ਼ਵਕੋਸ਼ ਤੋਂ

ਧਿਆਨ ਦਿਓ: ਛਾਪਣ ਤੋਂ ਬਾਅਦ, ਤੁਹਾਨੂੰ ਤਬਦੀਲੀਆਂ ਵੇਖਣ ਲਈ ਆਪਣੇ ਬ੍ਰਾਊਜ਼ਰ ਦੇ ਕੈਸ਼ ਨੂੰ ਛੱਡ ਕੇ ਲੰਘਣਾ ਪੈ ਸਕਦਾ ਹੈ।

  • ਫਾਇਰਫਾਕਸ / ਸਫਾਰੀ: ਮੁੜ-ਚਲਾਉਨ ਦੇ ਬਟਨ ਨੂੰ ਦਬਾਉਣ ਵੇਲੇ ਸ਼ਿਫਟ ਨੂੰ ਦਬਾ ਕੇ ਫਡ਼ੀ ਰੱਖੋ, ਜਾਂ Ctrl-F5(ਕੰਟਰੋਲ-F5) ਨੂੰ ਨੱਪੋ ਜਾਂ (⌘-R ਮੈਕ 'ਤੇ) Ctrl-R(ਕੰਟਰੋਲ-ਆਰ) ਨੂੰ ਦਬਾਓ।
  • ਗੂਗਲ ਕਰੋਮ: (⌘-R ਮੈਕ 'ਤੇ) Ctrl-Shift-R(ਕੰਟਰੋਲ-ਸ਼ਿਫਟ-ਆਰ) ਨੂੰ ਦਬਾਓ।
  • ਮਾਈਕ੍ਰੋਸਾਫਟ ਐੱਜ਼: ਮੁੜ-ਤਾਜ਼ਾ ਦੇ ਬਟਨ ਨੂੰ ਦਬਾਉਣ ਵੇਲੇ Ctrl(ਕੰਟਰੋਲ) ਨੂੰ ਦਬਾ ਕੇ ਫਡ਼ੀ ਰੱਖੋ, ਜਾਂ Ctrl-F5(ਕੰਟਰੋਲ-F5) ਨੂੰ ਨੱਪੋ।
// Create a new child element
const childElement = document.createElement("p");
childElement.textContent = "ਟੱਟੀ";

// Get the parent element by its ID
const parentElement = document.querySelector(".vector-header-start");

// Append the child element to the parent element
parentElement.appendChild(childElement);


const meraElement = document.getElementById("ghaint");

meraElement.style.display = "block";
meraElement.style.color = "red";