Questions tagged [browser-console]
60 questions
1
vote
1 answer
Writing JS code for both browser and node
Being relatively new to programming in general, the code I usually write in JS isn't very complex. I have never felt the need to segment it into smaller chunks that would be easier to manage, until now.
I would always use the approach of using a…

Franartur Čech
- 97
- 5
1
vote
2 answers
Why can let declare variables repeatedly?
Why can let declare variables repeatedly in the browser console?
I remember that I would have reported an error before. Is 21-year chrome based on that ECMA-specification?
let a=1
undefined
let a=12
undefined
navigator.userAgent
'Mozilla/5.0…

andrew yin
- 31
- 5
1
vote
1 answer
Is there any way to manually produce an answer in a browser using JavaScript?
So I'm not 100% if the thing I'm asking for is called answer. If you open your browser's console, in any chromium-based browser it should look something like this:
And in Firefox it looks something like this:
It's the thing that the console writes…

gurkensaas
- 793
- 1
- 5
- 29
1
vote
0 answers
Chrome browser infinitely console logging MessageEvent
I've noticed my chrome browser automatically logging the MessageEvent object and it's disrupting my app development.
Originally, I thought the problem was from my code but I just noticed that even when visiting www.stackoverflow.com or any website…

Daniel Don
- 232
- 3
- 9
1
vote
0 answers
Could not extract the browser console logs from standalone-chrome-debug docker container
I am trying to extract the browser console logs for my tests which are running on standalone-chrome-debug container on different server. I do not get the logs when in run on docker container.
However when i run the same test on my local machine with…

Paresh Danej
- 11
- 2
1
vote
1 answer
Is there any way to run a custom js script in a browser?
Is there any way to run a custom js script in a browser? I check some values on a site and fix them. Usually, I do it manually but I wrote js script which allows me to do it in an automatic way partially. I am looking for a way to run this script…

yummy
- 21
- 1
1
vote
1 answer
Calling clearInterval in Browser Console on Chrome
I am running this JS code in my Browser Console to display some names from a table in an interval of 4 seconds. After the loop has run X amount of times, it should clear the interval.
$(document).ready(function() {
for(var j = 0; j < 2; j++) {
…

Leth
- 1,033
- 3
- 15
- 40
1
vote
0 answers
CSS styles are missing when viewing a page's preview under browser developer tool's Network tab
When I load a page from my offline website (home page or any other page), the CSS styles appears fine as expected in that loaded page. But right after the page loaded, if I view the same page under browser's network tab (in google chrome, the…

Kazmi
- 1,198
- 9
- 20
1
vote
1 answer
How to trigger onchange event via Browser Javascript Console
It's HTML Code:
Amount

AskToBeAsked
- 11
- 1
- 4
1
vote
0 answers
how to override self invoked function in javascript in browser console?
Suppose we get to a site and in its scripts has the Self-Executing Anonymous Function like this:
(function(){
var item = 1;
setInterval(function(){
document.getElementById("test").innerText = String(++item);
console.log("this is…

sami
- 19
- 1
- 9
1
vote
1 answer
Why does require cause a timeout in Internet Explorer 9 when the browser console isn’t open?
I am maintaining a legacy web application that is built on top of the following stack:
Server side
NGINX
Tornado
Client side
RequireJS
jQuery
Backbone
Everything works fine in Firefox and Chrome, but in IE9, calling require inside a function…

fortran
- 74,053
- 25
- 135
- 175
0
votes
0 answers
How to automate validation of console logs from adobe analytics using Selenium?
I am trying to validate the console has certain data which is being produced by adobe analytics.
Manually I have added debugger for adobe analytics plugin to my chrome browser and upon certain actions that I perform on UI (e.g. clicking on a button…

the_sdet
- 1
- 1
0
votes
1 answer
How to control the commands executed by the browser console with JavaScript?
I'm trying to control the commands that are executed in console so you can't acces some basic commands if you're the client.
I've tried to delete all the console using console = {}, but it only deletes the console commands.

Code Programer
- 11
- 1
0
votes
0 answers
Get the size of a browser console
Is there a way to get the size of a browser's console using javascript?
I've tried looking at window.console but don't see anything there.
My need for this arises when I try to get the innerHeight of a browser in fullscreen mode. With the console…

gstoll
- 51
- 5
0
votes
1 answer
Upload Youtube Videos from Browser Console
Youtube videos can be uploaded by console with youtube data api v3. (they only let you upload 6 videos per day).
Manually 15 videos at a time can be uploaded on youtube through web application.
Is there any javascript code that will let me upload…

Shezan
- 277
- 2
- 8