browser

Get the current page being viewed in the browser (Possible?)

时光怂恿深爱的人放手 提交于 2019-12-22 17:59:41
问题 I would like to know Is it possible for me as an android developer to know if the browser app is currently open, and if it is, what page is being viewed? (URL?) If so, how would I go about doing this? If not, I would also love to know so I wouldn't search anymore. Thanks, Omri. 回答1: Hello, I would like to know Is it possible for me as an android developer to know if the browser app is currently open, and if it is, what page is being viewed? No, that is not possible -- it would be a privacy

webbrowser iframes open in default browser

走远了吗. 提交于 2019-12-22 14:54:28
问题 I've got the WebBrowser control to open links in my default browser like this: private void webBrowser1_Navigating(object sender, WebBrowserNavigatingEventArgs e) { if (e.Url.ToString() != "about:blank") { e.Cancel = true; System.Diagnostics.Process.Start(e.Url.ToString()); } } This works great but if I load a document that contains some IFrame elements those will be opened in the system browser as well (mostly embedded stuff, like Google Maps, Digg icons, etc..). How do I keep iframes

How do I make sense of this apparently deliberately obscurified JS code?

梦想与她 提交于 2019-12-22 14:49:08
问题 I'm trying to code my own, private interface for asking questions on Stack (without using the API, which requires an account, which defeats the point of having some minimal amount of anonymity), because I strongly prefer to have my own form in my own "control panel" where I can type it according to my own setup. After spending countless hours on this, I have come to the conclusion that Stack entirely refuses anyone trying to post without JavaScript enabled. When JavaScript is enabled in a

How can I detect the device from which my website is accessed?

北城余情 提交于 2019-12-22 14:01:27
问题 I have .NET website that is mainly built for desktop browsers but I'm currently making a mobile version of it. What I'm trying to do is load the website according to the device on which it is accessed by the user. Is there a way that I can get information about the user's device when they request the site? Regards, Sumit. 回答1: As suggested by others you can use the System.Web.HttpBrowserCapabilities class accessible through Request.Browser however without updated browser definition files the

How can I overlop ie's BeforeNavigate2 when using the WPF Browser Control?

无人久伴 提交于 2019-12-22 13:30:11
问题 As far as I understand, WPF's Brwoser control is a wrapper of the ie Active-X control. The later has a BeforeNavigate2 Method, while I don't find this in the WPF WebBrowser control. Is there a way I can work around this? Thx! Marc 回答1: Yes. The WebBrowser control of WPF is really braindead. On top of that it is even sealed. You have to use the WebBrowser control of Windows.Forms and embed it in a WindowsFormsHost. Additionally you have to derive a class from WebBrowser and do some COM magic

How do you combine URL fragments in Java the same way browsers do?

萝らか妹 提交于 2019-12-22 12:39:17
问题 NOTE : I am asking for real world problem, not for theoretical purpose; see the last part of the question -- the same way browsers do the job. Usually you would see the answer: new java.net.URL(new java.net.URL(base_url),rel_url).toString ( base_url and rel_url are String ). In my case base_url is the URL of page I fetched, rel_url comes from "<a href=..." value, so it might be even single "#" character (for example). However such code does not work for URL fragments, like such two pieces:

How do you combine URL fragments in Java the same way browsers do?

回眸只為那壹抹淺笑 提交于 2019-12-22 12:39:11
问题 NOTE : I am asking for real world problem, not for theoretical purpose; see the last part of the question -- the same way browsers do the job. Usually you would see the answer: new java.net.URL(new java.net.URL(base_url),rel_url).toString ( base_url and rel_url are String ). In my case base_url is the URL of page I fetched, rel_url comes from "<a href=..." value, so it might be even single "#" character (for example). However such code does not work for URL fragments, like such two pieces:

How to switch from http to https client side [closed]

六眼飞鱼酱① 提交于 2019-12-22 12:29:30
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 3 years ago . How to switch from http to https in a client side script. Do not change the URL otherwise . It should do nothing in https. The server replies the same to http and https. I need the rest of the Original URL to stay intact. http://example.com --> https://example.com http://example.com/a --> https:/

Force different links to open in a new Pop-up window every time

天大地大妈咪最大 提交于 2019-12-22 12:17:35
问题 I have an HTML page and have Four Links to go to Different pages on a new window. For Example: Link1, Link2, Link3 Link4 And I want Link 1 to pop-up in a new Window 1, Link2 to new Window 2 and so on... So that Window 1 and its content from Link1 will stay when Link2 is clicked. Currently, the problem is that the four links opens up in a new Window 1 covering up the first current content from Link1. What I want is to have four unique window every time a Link is clicked. I don't know if there

Detect new tab closing from parent(opener)

人走茶凉 提交于 2019-12-22 11:26:25
问题 I have read a bunch of posts but none of them seem to answer the question that i have exactly. Is it possible to detect a tab closing that was opened by a target="_blank" attr? I need a new tab/window to open, the user will select an option, then the tab closes. When that tab closes i need the original window(parent or opener) to refresh. Any ideas? EDIT: further explaination i have an application that opens another application in an iframe. the application opening in the iframe connects to