javascript - Change JS code in Inspect Element Editor -
when make changes in html content using chrome's inspect element editor changes reflected. when make change in javascript code changes not reflected.
suppose on click of button say, alert "john boy" , when change "john bad boy" using inspect element(js code) changes not reflected on button click , old text "john boy" gets displayed.
so when page gets loaded, not possible edit js code , see changes ? why ?
in experience, edits i've made javascript files have been reflected immediately. however, easy fix might try follows:
- insert breakpoint on line want edit
- reload page (breakpoints persist)
- edit line when breakpoint hit
- click continue on debugger
if need more information on breakpoints , debugger, check out this link
if want more information on using inspector tool, try searching through this tutorial
Comments
Post a Comment