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


Groups > comp.lang.javascript > #32630

Re: Javascript editing by user

Newsgroups comp.lang.javascript
Subject Re: Javascript editing by user
From "Evertjan." <exxjxw.hannivoort@inter.nl.net>
References <e912e0c9-61b5-4747-ba4d-6de316cc7288@googlegroups.com> <XnsA71BE4C593BFFeejj99@194.109.6.166> <96aaabe8-c22a-461e-94ea-cdc0a8da4b99@googlegroups.com>
Date 2017-02-14 10:32 +0100
Message-ID <XnsA71C6B2C360F8eejj99@194.109.6.166> (permalink)

Show all headers | View raw


yavindu@gmail.com wrote on 14 Feb 2017 in comp.lang.javascript:

> On Tuesday, February 14, 2017 at 2:59:18 AM UTC+5:30, Evertjan. wrote:
>> yavindu@gmail.com wrote on 13 Feb 2017 in comp.lang.javascript:
>> 
>> > In chrome, user can edit javascript file in source tab.
>> 
>> No, not in the 'view-source:'
>> 
>> > Is there way to
>> > trigger an event when user try to edit javascript file in console? 
>> 
>> What would be the sense of that? 

[please do not quote signatures on usenet, signature removed]

> Not in the view-source.I meant Inspect source tab.

Oh well, you mean the developer tool.

> 
> 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. 

Why would you expect JS to run again when you change the developer tool?

When the page is with the user, it is not your property anymore,
only your intelectual property, so why this primordial wish to control the 
user?

If you want to have some control over the page, 
use serverside programming, [or flash, as long as it lasts].

-- 
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

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