How do I hide javascript code in a webpage?

前端 未结 11 729
时光取名叫无心
时光取名叫无心 2020-11-22 17:17

Is it possible to hide the Javascript code from the html of a webpage, when the source code is viewed through the browsers View Source feature?

I know it is possibl

11条回答
  •  死守一世寂寞
    2020-11-22 18:04

    No, it isn't possible.

    If you don't give it to the browser, then the browser doesn't have it.

    If you do, then it (or an easily followed reference to it) forms part of the source.

提交回复
热议问题