Questions tagged [browser]

A web browser or Internet browser is a software application for retrieving, presenting, and traversing information resources on the World Wide Web.

browser
Filter by
Sorted by
Tagged with
40 votes
2 answers
30k views

How can we open a link in private browsing mode

In my web page there is a link which should be opened in private browsing mode always. So how can I do it using HTML/javascript/jquery/php?
nilesh's user avatar
  • 531
35 votes
5 answers
65k views

Force browsers to load CSS before showing the page

I've made a mobile version of my site. When loading the page however, the site is first shown without the CSS applied, and after a second (at most) it applies the CSS and renders it properly. This ...
Albus Dumbledore's user avatar
33 votes
6 answers
44k views

Within a web browser, is it possible for JavaScript to obtain information about the HTTPS Certificate being used for the current page?

Is there a method for JavaScript running in a browser to determine which CA certificate is being used to authenticate the remote host for the browser's current HTTPS connection, and also obtain ...
sutch's user avatar
  • 1,255
30 votes
9 answers
66k views

Target='_blank' to show in new window, NOT new tab, possible?

How can I do this? In firefox the link opens in a new tab... I don't want users to have to set settings of their browsers for this... I want a pop-up to appear with contact-form whenever user clicks ...
user avatar
28 votes
5 answers
31k views

Mechanize and Javascript

I want to use Mechanize to simulate browsing to a web page with active JavaScript, including DOM Events and AJAX, and so far I've found no way to do that. I looked at some Python client browsers that ...
Jeff Klip's user avatar
  • 281
27 votes
13 answers
74k views

How do I stop the Back and Refresh buttons from resubmitting my form?

I am doing web development. I have a page to do with credit card, which when user click "refresh" or "Back", the transaction will be performed one more time, which is unwanted. This include Browser ...
user avatar
24 votes
11 answers
177k views

How can I detect browser type using jQuery?

I want to detect if the user is using IE and Firefox but I cannot find the script. I have code as below: $(document).ready(function(e) { $.browser.chrome = /chrom(e|ium)/.test(navigator....
sealong Maly's user avatar
20 votes
7 answers
30k views

PHP Headless Browser? [closed]

Is there a headless browser library for PHP? Would like something that has a JS engine built into it. FOSS preferred.
StackOverflowNewbie's user avatar
20 votes
7 answers
53k views

C# WebBrowser control -- Get Document Elements After AJAX?

I'm writing an application that uses the WebBrowser control to view web content that can change with AJAX that adds new content/elements. I can't seem to get at the new elements any way I've tried. ...
aikeru's user avatar
  • 3,853
307 votes
7 answers
113k views

What does it mean when a CSS rule is grayed out in Chrome's element inspector?

I'm inspecting an h2 element on a web page using Google Chrome's element inspector and some of the CSS rules--which appear to be applied--are grayed out. It seems that a strike-through indicates that ...
Rob Sobers's user avatar
  • 20.9k
186 votes
18 answers
210k views

Disable double-tap "zoom" option in browser on touch devices

I want to disable the double-tap zoom functionality on specified elements in the browser (on touch devices), without disabling all the zoom functionality. For example: One element can be tapped ...
Wouter Konecny's user avatar
179 votes
2 answers
220k views

HTML 5 Favicon - Support?

I was reading the Favicon page on Wikipedia. They mention the HTML 5 spec for Favicon: The current HTML5 specification recommends specifying size icons in multiple sizes using the attributes rel="...
L84's user avatar
  • 45.9k
101 votes
9 answers
71k views

How does the Back button in a web browser work?

I searched the Web about this question but I found nothing: What is the logic of the back button? What is happening when we hit the back button on a Web browser? I really would like to understand more ...
Pierre Thibault's user avatar
93 votes
4 answers
129k views

How to Identify Microsoft Edge browser via CSS?

I'm developing web application and I need to identify Microsoft Edge's browser separately from others, to apply unique styling. Is there a way to identify Edge by using CSS? Just like, <!--[if IE ...
Sameera Liyanage's user avatar
69 votes
4 answers
94k views

Detect if browser is running on an Android or iOS device

I need to change out some buttons and text on a mobile website depending on whether the user is viewing it on an Android or iOS browser. Is there a reliable way to perform the check?
soleil's user avatar
  • 12.7k
51 votes
6 answers
18k views

JavaScript performance difference between double equals (==) and triple equals (===)

In JavaScript, is there a performance difference between using a double equals (==) vs using a triple equals (===)? Example: if (foo == bar) vs if (foo === bar)
Eric's user avatar
  • 6,481
45 votes
10 answers
85k views

Stop people having my website loaded on multiple tabs

I want users to browse my site from only one tab in their browser. How can this be done? Would I use javascript and cookies? For example, I have a website: www.example.com - and I want my clients to ...
Jason's user avatar
  • 496
38 votes
4 answers
71k views

wget + JavaScript?

I have this webpage that uses client-side JavaScript to format data on the page before it's displayed to the user. Is it possible to somehow use wget to download the page and use some sort of client-...
Jake Wilson's user avatar
  • 89.9k
37 votes
11 answers
24k views

How can I locate the default style sheet for a browser?

I would like to see the specific style elements that are used in the default stylesheet for the various browsers. Do the browsers have an actual file based stylesheetss that I locate on my system and ...
jr.'s user avatar
  • 1,807
36 votes
4 answers
106k views

Can I resize the browser window?

I want to resize a browser popup window's width and height. I can set the popup window size but I want to convert the window size fit to contents size when a page is redirected to another page. I ...
Sanghyun Lee's user avatar
  • 22.2k
34 votes
8 answers
31k views

How to check if a CSS property or value is supported by a browser?

My div that uses vh is not working in some browsers, so I want to check if it is supported. I found this article by Lea Verou on the subject, but I'm really not sure how to use it with a CSS value: ...
Guillaume Palm's user avatar
32 votes
1 answer
16k views

Have any browsers implemented the DOM3 EventListenerList?

The answer was "no" back in March 2010: Browser EventListenerList Implementation I'm wondering if there has been any progress since then. If the answer's still "no" ... any ...
jawns317's user avatar
  • 1,746
31 votes
4 answers
29k views

Why is script-src-elem not using values from script-src as a fallback?

When implementing csp-header, I have specified my policy as: default-src 'self'; script-src www.gstatic.com; Since I have not declared script-src-elem directive in my csp policy, as stated in this mdn ...
haku's user avatar
  • 4,305
31 votes
2 answers
128k views

Browser back button handling

I am trying to handle browser back button event but i could not find any solution. I want to ask user if he clicks on browser back button using "confirm box" if he chooses ok i have to allow back ...
Ramesh Paul's user avatar
31 votes
6 answers
85k views

filter: blur(1px); doesn't work in Firefox, Internet Explorer, and Opera

I have a problem with CSS. When I try to do -webkit-filter: blur(1px); -moz-filter: blur(1px); -ms-filter: blur(1px); -o-filter: blur(1px); filter: blur(1px); it looks perfect in Safari and Chrome, ...
Thomas Lai's user avatar
28 votes
11 answers
98k views

How to find Javascript syntax errors? [closed]

I am writing a JavaScript section of code and making huge amounts of silly mistakes in the syntax. But the only way to find what line the error is on is to start commenting out the section of code I ...
Robert Deml's user avatar
  • 12.4k
26 votes
4 answers
20k views

Is the HTML shown via 'View Source' different from the HTML shown in (Firebug) developer tools?

I'm using Firefox alongside Firebug Developer tools. Is the HTML shown in View Source (Ctrl + U) different from the HTML I see when inspecting elements using Firebug? What are the differences ...
sergserg's user avatar
  • 22k
26 votes
7 answers
28k views

Track when user hits back button on the browser

Is it possible to detect when the user clicks on the browser's back button? I have an Ajax application and if I can detect when the user clicks on the back button I can display the appropriate data ...
Rushi's user avatar
  • 1,662
25 votes
3 answers
35k views

Browser support for CSS :first-child and :last-child

Does anyone know which browsers/version support them? Is it safe to use them, or should I resort to PHP / javascript to generate first/last classes?
Alex's user avatar
  • 67k
24 votes
3 answers
54k views

Ask for confirm when closing a tab [closed]

When I close my page on some browser I want a message box to appear and to ask me if I really want to close the page or not, with two buttons and if I click No then this tab won't be closed. How can ...
AXheladini's user avatar
  • 1,796
23 votes
1 answer
82k views

Using JavaScript to edit CSS gradient

I am working on editing CSS gradients through JavaScript in Firefox. I have input boxes where the user can put 1. Orientation 2. 1st Color 3. 2nd Color Here is the html <html> <head&...
onTheInternet's user avatar
19 votes
5 answers
19k views

Sending user to their browser's Home Page using Javascript

Is it possible to get a browser's home page using Javascript? I'd like to place a link on a page that goes to the home page set in the browser.
Trev's user avatar
  • 1,377
17 votes
5 answers
54k views

How can I use JavaScript to transform XML & XSLT?

I want to use JavaScript to show my XSLT, but on my server nothing is showing up in the browser. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <...
okMonty's user avatar
  • 225
16 votes
6 answers
24k views

Enable longClick in WebView

In the browser, you can longClick on URLs. In my WebView, you cannot. How can I make it so you can?
Aymon Fournier's user avatar
8 votes
2 answers
30k views

HTML5 Video autoplay with sound unmuted

I need to implement a local autoplay video on my website. Still, I knew that newer browsers, i.e., Chrome, Mozilla, and Safari, have blocked autoplay when the video has no 'muted' attribute. So, Is ...
Kaka's user avatar
  • 119
301 votes
3 answers
250k views

what happens when you type in a URL in browser [closed]

Can somebody tell me what all happens behind the scenes from the time I type in a URL in the browser to the time when I get to see the page on the browser? A detailed account of the process would be ...
Aadith Ramia's user avatar
  • 10.2k
116 votes
2 answers
27k views

Browser support for URLs beginning with double slash

I've recently seen a few links used without a protocol. It didn't seem too difficult to understand - I think it's a great idea and pretty intuitive. For those of you unaware, using a URL like //...
dtbarne's user avatar
  • 8,160
77 votes
14 answers
110k views

Best way to check for IE less than 9 in JavaScript without library

What would be your fastest, shortest (best) way to detect browser which is IE and version less than 9 in JavaScript, without using jQuery or any add-on libraries?
bcm's user avatar
  • 5,470
72 votes
14 answers
99k views

Is there a way to force browsers to refresh/download images?

I have a problem where users are reporting that their images aren't being uploaded and the old ones are still there. On closer inspection the new images are there, they just have the same name as the ...
uriDium's user avatar
  • 13.3k
65 votes
8 answers
62k views

Showing console errors and alerts in a div inside the page

I'm building a debugging tool for my web app and I need to show console errors in a div. I know I can use my own made console like object and use it, but for future use I need to send all console ...
Mohsen's user avatar
  • 65.1k
61 votes
1 answer
32k views

Is the per-host connection limit raised with HTTP/2?

Browsers have a per-host limit regarding number of parallel XHR (about 6 nowadays). Does this restriction apply to multiplexed HTTP/2 connections?
Warren Seine's user avatar
  • 2,399
55 votes
3 answers
49k views

How to detect Facebook in-app browser?

Have you had any experience in Facebook in-app browser detection? What's the core difference in user agent? I don't want to know if it is a only mobile/ios/chrome. I need to know whether user agent ...
milosz0010's user avatar
43 votes
2 answers
90k views

Usage of Hash(#) in URL

I was wondering is there any use of hash other than as an anchor in URL. I read about it here getting the full url including query string after hash . What is state information for the client? Please ...
Naman's user avatar
  • 1,021
41 votes
3 answers
61k views

Getting the last modified date of a file in Java

I'm making a basic file browser and want to get the last modified date of each file in a directory. How might I do this? I already have the name and type of each file (all stored in an array), but ...
Ky -'s user avatar
  • 31.5k
30 votes
4 answers
12k views

Do web browsers always send a trailing slash after a domain name?

Is there consistency and/or a standard on how browsers send an URL to a host related to trailing slashes? Meaning, if I type in http://example.com in the address bar of a web browser, is the browser ...
Hank's user avatar
  • 1,161
29 votes
3 answers
15k views

Chunked transfer encoding - browser behavior

I'm trying to send data in chunked mode. All headers are set properly and data is encoded accordingly. Browsers recognize my response as a chunked one, accepting headers and start receiving data. I ...
Dani El's user avatar
  • 409
26 votes
4 answers
111k views

Setting minimum size limit for a window minimization of browser?

Is there a way to manually set the minimum size of a browser window across all browsers?
Human Being's user avatar
  • 8,327
21 votes
0 answers
9k views

JS - Mobile - Open Safari from any browser [closed]

Since Apple allow use of camera in Safari (Mobile), we can do a lot things, but sharing them is hard. You cannot open a website in Safari from another browser directly (Chrome, FacebookBrowser, ...
Lâm Hiền Tâm's user avatar
21 votes
3 answers
8k views

Is the anchor part of a URL being sent to a web server?

Say, there's a URL, http://www.example.com/#hello. Will the #hello thing be sent to the web server or not, according to standards? How do modern browsers act?
codeholic's user avatar
  • 5,770
18 votes
2 answers
8k views

Using "transfer-encoding: chunked", how much data must be sent before browsers start rendering it?

All browsers wait for some content (and sometimes some amount of time, too) before they start rendering a partial http response you have flushed to it across the network - but how much?
ecmanaut's user avatar
  • 5,080

1
3 4
5
6 7
67