Home > Back-end >  Gets the current browser's url
Gets the current browser's url

Time:10-23

Baidu found is to obtain the url of the ie, but not ie can't get, could you tell me how can I get to the other browser url, such as firefox, 360, thank you

CodePudding user response:

Why have such requirements? Each browser interface layout is different, if use the same browser, layout may also be different, for example, I installed a FF plug-in into Chrome style interface, what are you going to reverse engineering is one of the world all browsers all plug-in?

CodePudding user response:

Each consideration, workload is too heavy,

CodePudding user response:

reference 1st floor response:
why have such requirements? Each browser interface layout is different, if use the same browser, layout may also be different, for example, I installed a FF plug-in into Chrome style interface, what are you going to reverse engineering is one of the world all browsers all plug-in?

So can you tell me the specific approach is: how about, if just 360, what should use?

CodePudding user response:

360 browser should also ma3 jia3 IE browser,

A simple implementation is traversing 360 browser window, find the address bar of the window, GetWindowText can,

CodePudding user response:

reference 4 floor response:
360 browser should also ma3 jia3 IE browser,

A simple implementation is traversing 360 browser window, the window to find the address bar, GetWindowText.


I use a spy after handle to check the address bar, with GetWindowText cannot take out

CodePudding user response:

You confirm to check the address bar of the handle? What is the name of the class?

CodePudding user response:

The
reference 6th floor response:
you confirm to check the address bar of the handle? What is the name of the class?


The name of the class Chrome_OmniboxView (360 speed), can see the url in the spy, but with no GetWindowText

CodePudding user response:

The
reference 7 floor yedezhanghao response:
[Quote=cited the 6th floor response:]

You confirm to check the address bar of the handle? What is the name of the class?


The name of the class Chrome_OmniboxView (360 speed), can see the url in the spy, but with GetWindowText when there is no


I also met you such a question at present, spy can see URL but when using the GetWindowText to get is empty, and I use GetlastError returns values for 5, mean access denied!
Don't know how to deal with,
  • Related