Skip to content
Advertisement

Tag: browser

How do I hide javascript code in a webpage?

Is it possible to hide the Javascript code from the html of a webpage, when the source code is viewed through the browsers View Source feature? I know it is possible to obfuscate the code, but I would prefer it being hidden from the view source feature. Answer I’m not sure anyone else actually addressed your question directly which is

Browser Timeouts

Do browsers have built in timeouts and if so what are they? I have a page that does an AJAX call on a process that takes at most 5 minutes to run. Someone said browsers timeout after 2 minutes but didn’t know if there was any truth to that. Answer It’s browser dependent. “By default, Internet Explorer has a KeepAliveTimeout

Adding to browser context menu?

Is it possible to add item to the default browser right button click menu? Answer One option is to replace the context menu with your own JavaScript triggered equivalent. Firefox implemented the menu element where you can add to the existing context menu. It was also implemented in Chrome behind a flag. Unfortunately this feature has been removed from the

JavaScript file not updating no matter what I do

I have an external JavaScript file and whether in FireFox or Chrome, whether all browsing data is cleared, it will NOT update no matter what. I believe something happened when I made a backup of my file, which I simply added “_thedate” to the end of the name. Then Save As back to the original name. Now I cannot seem

Is it possible to connect to SSH using JavaScript?

I know there is an implementation of VNC using WebSockets (http://novnc.com) but that still requires a server. I am looking to create a simple client-side JavaScript only (no Flash) connection to a port running SSH. I am guessing WebSockets is the only way to go since it does TCP. Any example code? Any other way? Answer Sorry, given your constraints

Lightweight web browser for testing

I have e very specific test setup in mind. I would like to start a web-browser that understands Javascript and can use HTTP proxy, point it to a URL (ideally by specifying it in the command line along with the proxy config), wait for the page to load while listening (in the proxy) requests are generated as web-page is rendered

How do you edit Javascript in the browser?

I was looking for a way to edit JavaScript in a browser, such as Firefox, on the fly and execute it. Firebug allows us to edit HTML and CSS on the fly but JavaScript is a pain. I have to go back to the source and modify that. I don’t understand why the browser developer tools don’t allow editing. Is

Possible to flash a Browser window using Javascript?

Like many programs flash their window on the taskbar / dock to alert the user to switch to the program, Is it possible to flash the Browser window using Javascript? (FireFox-only scripts are also welcome) This is useful for web-based Chat / Forum / Community-based software where there is lots of real-time activity. Answer @Hexagon Theory: Why would you ever

What is JavaScript’s highest integer value that a number can go to without losing precision?

Is this defined by the language? Is there a defined maximum? Is it different in different browsers? Answer JavaScript has two number types: Number and BigInt. The most frequently-used number type, Number, is a 64-bit floating point IEEE 754 number. The largest exact integral value of this type is Number.MAX_SAFE_INTEGER, which is: 253-1, or +/- 9,007,199,254,740,991, or nine quadrillion seven

Advertisement