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

Related Questions

Ok, in my code I have for example, this: $('.follow').click(function(){ var myself = $(this);
This is my code : var markers={}; example(); function example() { var myFunct =
I have seen this example on the web: $('#questionTextArea').each( function() { var $this =
Say I have this for example: $(function() { var seconds = 142.097019375; seconds =
Good day! For this example of function html() http://api.jquery.com/html/ How to return to link
Consider the following code: (live example here ) $(function() { var wrapper = $(<div
window.global_array = new Array(); window.example = function() { var x = new Object(); x['test_property']
For example suppose client side I have a JavaScript function function getLocation() { var
i can reference link with specific id with following code $(document).ready(function(){ $(a#example_link_id).click(function(event){ var url
We have the following example in node.js var http = require('http'); http.createServer(function(request, response) {

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.