Skip to main content
added 10 characters in body
Source Link
wizzwizz4
  • 2.4k
  • 15
  • 42

JavaScript in browser

Well, at least in IE11.

window.addEventListener("error", function(){});
document = document.write = alert = prompt = confirm = console = void(
    (function (window) {
        try {
            //Code goes here
        } catch (e) {}
    })({})
);

Disables writing to the document, writing to the global variable and returning from the function.

Comment if I've missed out an output method!

JavaScript in browser

Well, at least in IE11.

window.addEventListener("error", function(){});
document = document.write = alert = prompt = console = void(
    (function (window) {
        try {
            //Code goes here
        } catch (e) {}
    })({})
);

Disables writing to the document, writing to the global variable and returning from the function.

Comment if I've missed out an output method!

JavaScript in browser

Well, at least in IE11.

window.addEventListener("error", function(){});
document = document.write = alert = prompt = confirm = console = void(
    (function (window) {
        try {
            //Code goes here
        } catch (e) {}
    })({})
);

Disables writing to the document, writing to the global variable and returning from the function.

Comment if I've missed out an output method!

added 17 characters in body
Source Link
wizzwizz4
  • 2.4k
  • 15
  • 42

JavaScript in browser

Well, at least in IE11.

window.addEventListener("error", function(){});
document = document.write = alert = prompt = console = void(
    (function (window) {
        try {
            //Code goes here
        } catch (e) {}
    })({})
);

Disables writing to the document, writing to the global variable and returning from the function.

Comment if I've missed out an output method!

JavaScript in browser

Well, at least in IE11.

window.addEventListener("error", function(){});
document = alert = prompt = console = void(
    (function (window) {
        try {
            //Code goes here
        } catch (e) {}
    })({})
);

Disables writing to the document, writing to the global variable and returning from the function.

Comment if I've missed out an output method!

JavaScript in browser

Well, at least in IE11.

window.addEventListener("error", function(){});
document = document.write = alert = prompt = console = void(
    (function (window) {
        try {
            //Code goes here
        } catch (e) {}
    })({})
);

Disables writing to the document, writing to the global variable and returning from the function.

Comment if I've missed out an output method!

added 53 characters in body
Source Link
wizzwizz4
  • 2.4k
  • 15
  • 42

JavaScript in browser

Well, at least in IE11.

window.addEventListener("error", function(){});
document = alert = prompt = console = void(
    (function (window) {
        try {
            //Code goes here
        } catch (e) {}
    })({})
);

Disables writing to the document, writing to the global variable and returning from the function.

Comment if I've missed out an output method!

JavaScript in browser

Well, at least in IE11.

document = alert = prompt = console = void(
    (function (window) {
        try {
            //Code goes here
        } catch (e) {}
    })({})
);

Disables writing to the document, writing to the global variable and returning from the function.

Comment if I've missed out an output method!

JavaScript in browser

Well, at least in IE11.

window.addEventListener("error", function(){});
document = alert = prompt = console = void(
    (function (window) {
        try {
            //Code goes here
        } catch (e) {}
    })({})
);

Disables writing to the document, writing to the global variable and returning from the function.

Comment if I've missed out an output method!

deleted 190 characters in body
Source Link
wizzwizz4
  • 2.4k
  • 15
  • 42
Loading
added 42 characters in body
Source Link
wizzwizz4
  • 2.4k
  • 15
  • 42
Loading
added 42 characters in body
Source Link
wizzwizz4
  • 2.4k
  • 15
  • 42
Loading
Source Link
wizzwizz4
  • 2.4k
  • 15
  • 42
Loading