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


Groups > comp.lang.javascript > #32629

Re: Javascript editing by user

Newsgroups comp.lang.javascript
Date 2017-02-13 23:48 -0800
References <e912e0c9-61b5-4747-ba4d-6de316cc7288@googlegroups.com> <XnsA71BE4C593BFFeejj99@194.109.6.166>
Message-ID <96aaabe8-c22a-461e-94ea-cdc0a8da4b99@googlegroups.com> (permalink)
Subject Re: Javascript editing by user
From yavindu@gmail.com

Show all headers | View raw


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? 
> 
> -- 
> Evertjan.
> The Netherlands.
> (Please change the x'es to dots in my emailaddress)

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.

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