Ask coding questions

← Back to all posts
Can you display the JavaScript console on an html page?
MikeJMS8910 (160)

So I want to have it where you can access the javascript console on the HTML page without opening the inspector and all of that. I tried looking this up but can't seem to find anything of what I am asking. So is it even possible to do this(without having to write 1000 lines of code and rewrite the entirety of the javascript programming language)?

Coder100 (18109)

I mean the only thing you need to reverse engineer is basically console.log.

Here's a small thing I made:
Ideally you dont want to hack the lang, and instead be specific about the terminal.

codingjlu (209)

Check out this downvote post:

P.S. from now on I'll refer to SO as downvote xD because everybody downvotes too much (maybe that includes me lol)

RayhanADev (2514)

Well, I made something a long time ago that did kinda what you want:

MikeJMS8910 (160)

@RayhanADev yea that is sorta what I want but then is there a way to also display output like console.log

RayhanADev (2514)

@MikeJMS8910 umm I'm pretty sure I just hijacked console.log and such and then used that as output. Check into the code and let me know.