Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 709861
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T04:33:03+00:00 2026-05-14T04:33:03+00:00

For example: (function() { var proxied = window.eval; window.eval = function() { return proxied.apply(this,

  • 0

For example:

(function() {
      var proxied = window.eval;
      window.eval = function() {
        return proxied.apply(this, arguments);
      };
    })();

But this code is not working.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T04:33:03+00:00Added an answer on May 14, 2026 at 4:33 am

    You can’t. (There is a limited way of doing it, but it’s quite limited and doesn’t maintain the magic that bobince talks about.)

    eval isn’t a real JavaScript function in at least one major implementation (IE’s JScript, at least not through IE7; haven’t tested the new IE8 version), so right off the bat you’re going to run into trouble, because you won’t be able to call the original via apply (not that that really matters for eval).

    The recent ECMAScript 5 specification specifically disallows overriding eval in strict mode (not that you’re using strict mode there), which makes me suspect that there are very good reasons for not overriding it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 488k
  • Answers 488k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Set the large image as the background of your fixed-size… May 16, 2026 at 8:47 am
  • Editorial Team
    Editorial Team added an answer You'll need to create your own custom attribute that can… May 16, 2026 at 8:47 am
  • Editorial Team
    Editorial Team added an answer You can prevent the event from bubbling using event.stopPropgation() like… May 16, 2026 at 8:47 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

For example, function fnCheckScroll(){ var iNewHeight = oDiv.scrollHeight; var iscrolTop = oDiv.scrollTop; alert(The value
What does the $() function do in the following example? function test(){ var b=$('btn1');
a little misunderstanding with JQuery and JS variables. Simple example: function someFunc(){ var flag
Is it possible to pass arguments to click or submit function like : $(#example).click(function()
When I pass 'this' to an anonymous function like so: MyClass.prototype.trigger = function(){ window.setTimeout(function(){this.onTimeout();},1000);
Working example with global var: var example_var = 'global var example'; var x =
I know there are several other posts on this topic but they still leave
I have the following: var o = {f: function(fn) { fn.call(o); }}; var ob
I have a simple question related to one-line programming. First an example: function test(a)
I have the following Javascript between tags in a template: YAHOO.util.Event.addListener(window, load, function() {

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.