javascript - Can a user permanently amend an HTML file through the browser? -


for example- user change actual code of html web browser using javascript prompt?

if had following code.

<html> <head> <script>var person = prompt("please enter name");</script> </head> <body> <p>this should user amendable</p> <p>this shouldn't</p> </body> </html> 

i don't mean store variable person temporarily, change html code , replace value of variable?

not such. alternatives include:

  • you take changes , send them server using xmlhttprequest. server respond storing them , sending new version requested in future.
  • you store changes in local storage / cookie / etc, , include javascript in page looks data , updates page loads.
  • a browser plugin written store modifications made given url.

Comments

Popular posts from this blog

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -