daily pastebin goal
89%
SHARE
TWEET

Untitled

a guest Jan 23rd, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. alert(div1.innerHTML);//добавляем в JS перменную ХТМЛ
  2. div1.innerHTML='<b>ha-ha</b>'; // как поменять текст
  3. lol.style.color = 'red';//цвет букв
  4. div1.style.backgroundColor = 'orange';//фон текста
  5. alert(div1.style.backgroundColor);//orange - получение стиля
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top