Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #32634

Re: Javascript editing by user

From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Newsgroups comp.lang.javascript
Subject Re: Javascript editing by user
Date 2017-02-14 23:04 +0100
Organization PointedEars Software (PES)
Message-ID <1866493.OBFZWjSADL@PointedEars.de> (permalink)
References <e912e0c9-61b5-4747-ba4d-6de316cc7288@googlegroups.com> <XnsA71BE4C593BFFeejj99@194.109.6.166> <96aaabe8-c22a-461e-94ea-cdc0a8da4b99@googlegroups.com> <1faumow9p9v0z$.sad5fdlkedbz$.dlg@40tude.net>

Show all headers | View raw


JJ wrote:

> On Mon, 13 Feb 2017 23:48:27 -0800 (PST), yavindu@gmail.com wrote:
>> Not in the view-source.I meant Inspect source tab.
>> 
>> My Idea is this.
>> 
>> If i declare a function like this -
>> 
>> function reloadWhenUserEditJSFile(){
>> 
>> location.reload()
>> 
>> }
>> 
>> and if there an event to call that function when user edit js file using
>> Inspect source tab then probably i can stop user from editing file using
>> browser Inspect source tab.
> 
> No.

Correct.

> Web page

There is no “web page”.

> script don't have access to the Developer Tools or any part of it.

<script type="text/javascript">
  console.log("You are wrong.");
</script>
 
> AFAIK, any JS file opened in the Developer Tools' Sources tab is just a
> copy. Any changes to the JS code is not applied to the one which is used

Yes, it is, but only until the window/tab is reloaded.

> by the web page.

There is no “web page”.

-- 
PointedEars
FAQ: <http://PointedEars.de/faq> | <http://PointedEars.de/es-matrix>
<https://github.com/PointedEars> | <http://PointedEars.de/wsvn/>
Twitter: @PointedEars2 | Please do not cc me./Bitte keine Kopien per E-Mail.

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Javascript editing by user yavindu@gmail.com - 2017-02-13 08:25 -0800
  Re: Javascript editing by user "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-02-13 22:29 +0100
    Re: Javascript editing by user yavindu@gmail.com - 2017-02-13 23:48 -0800
      Re: Javascript editing by user "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-02-14 10:32 +0100
      Re: Javascript editing by user JJ <jj4public@vfemail.net> - 2017-02-14 23:47 +0700
        Re: Javascript editing by user yavindu@gmail.com - 2017-02-14 09:00 -0800
        Re: Javascript editing by user Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-02-14 23:04 +0100
          There is no web page James Kirk <noneya.invalid@gmail.com> - 2017-02-16 14:53 -0500
      Re: Javascript editing by user Gene Wirchenko <genew@telus.net> - 2017-02-14 15:08 -0800

csiph-web