
WebSockets used to create interactive communication between a browser and a server, and this technology is used to build Multiplayer Games, HTML5 chats and much more. Mozilla dropped WebSockets support for Firefox 4 (Opera also dropped support for their browser due to security concerns) and recently added back to Firefox 6 Aurora channel, currently Chrome and Safari supports WebSockets. If you’re wondering how to know whether a Browser supports WebSockets? You can use simple JavaScript code in the address bar of browser to find out, and here is how.
Find any Browser’s Support for WebSockets
Open the Browser, and paste the below code in the address bar and press enter.
javascript:alert(“WebSockets are ” + (window.WebSocket ? “” : “not “) + “supported”);
Here above screenshots shows Opera and Firefox browsers doesn’t support WebSockets dialog box where as Chrome supports it.
Nice tip. I just wanted to point out that Opera does support WebSockets (both latest stable and development snapshots), but they are disabled by default. To enable simply type “opera:config” (without the quotes) into the address bar. Then search for “sockets” and tick the checkbox to enable WebSockets. Click Save and restart the browser.
You’re right. I knew it and covered already here https://techdows.com/2010/12/enable-websockets-in-opera-11.html I should’ve mentioned about that in this post. Anyway thanks for observation.
It simply not works. I have set default search engine on address bar, is that reason that it will takes to the google page when I write `javascript:alert(‘whatever’)` in address bar
Gone are those days, modern browsers don’t allow running JavaScript from URL bar for security reasons, don’t worry, We’ve got you covered.
Check this https://techdows.com/2014/09/how-to-run-javascript-commands-in-chrome-and-firefox-browsers.html