1

I am new to web develeopment. When I bring changes to my javascript code it does not apear on refresh.

I have included my js file in the head tag.

function changecolor() {
    this.styles.color = "gray"
}

It still show an alert when i click my button.

Can anyone help me please?

Peyman Mohamadpour
  • 17,954
  • 24
  • 89
  • 100
Ali Qadir
  • 15
  • 6
  • 3
    Welcome to Stack Overflow! The example you posted is not sufficient for us to reproduce the problem. We need to know what is calling `changeColor()`. – Wais Kamal Jun 04 '20 at 19:35

1 Answers1

0

If you are using chrome hold shift and click reload or f5. This will erase the cache and reload the file.

Ali Azimi
  • 276
  • 3
  • 18