Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #31276
| Newsgroups | comp.lang.javascript |
|---|---|
| Date | 2016-09-07 18:00 -0700 |
| References | <toydnbeQVIupLk3KnZ2dnUU7-KXNnZ2d@westnet.com.au> |
| Message-ID | <02e22c05-6ee4-4838-ade8-eeb2f61d8bd6@googlegroups.com> (permalink) |
| Subject | Re: restore window alert |
| From | "Michael Haufe (TNO)" <tno@thenewobjective.com> |
On Wednesday, September 7, 2016 at 7:39:31 PM UTC-5, Andrew Poulos wrote: > A third party elearning output I'm required to modify has, in a giant > JavaScript file, overridden window.alert. The original value for > window.alert has not been stored. > > I cannot modify the JavaScript file directly (each time the elearning is > published it recreates the file with whatever it deems necessary) so I > have to add a new file. > > Any custom JavaScript I add can only go after their JavaScript. > > Is there any way to reference the native window.alert once its been > overridden? You can create an iframe and use the alert of that frame's contentWindow
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
restore window alert Andrew Poulos <ap_prog@hotmail.com> - 2016-09-08 10:39 +1000
Re: restore window alert "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-09-07 18:00 -0700
Re: restore window alert JJ <jj4public@vfemail.net> - 2016-09-08 18:47 +0700
Re: restore window alert "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-09-08 06:43 -0700
Re: restore window alert Martin Honnen <martin.honnen@gmx.de> - 2016-09-08 16:32 +0200
Re: restore window alert Andrew Poulos <ap_prog@hotmail.com> - 2016-09-09 14:49 +1000
Re: restore window alert "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-09-09 06:20 -0700
Re: restore window alert Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-09-10 16:26 +0200
Re: restore window alert Ram Tobolski <ramtob@gmail.com> - 2016-09-11 00:17 -0700
Re: restore window alert Andrew Poulos <ap_prog@hotmail.com> - 2016-09-11 17:57 +1000
Re: restore window alert Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-09-11 11:19 +0200
Re: restore window alert Andrew Poulos <ap_prog@hotmail.com> - 2016-09-11 19:00 +1000
Re: restore window alert Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-09-11 13:24 +0200
csiph-web