Hi,
i write code to open url such as "http://www.google.com"
System .Diagnostics .Process .Start("http://www.google.com");
but every time call this line open google in the new tab
i need it to open in the same tab in firfox
i try other browser the same
Thanks
You can't the .net code runs serverside and starts a client side process.
__________________
Chris. ->> Please login or register to view this content. Registration is FREE <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
In that case you need to get the active window of the current Firefox/browser process and target that with the new location.
Your code is doing what it says, and starting a new process.
__________________
Chris. ->> Please login or register to view this content. Registration is FREE <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
i need to open the new location in the active window in the same tab or same active tab...the code above every time i called generate new tab...i need one tab only for this code ..every time i called open location on active tab not new tab
Opening a new tab IS the firefox default action for links or actions that would normally open a new window or a new browser instance.
You will need to find some method of getting the active tab from the Firefox process, which may of course NOT be an exposed method to avoid possible exploits/hijacking.
__________________
Chris. ->> Please login or register to view this content. Registration is FREE <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
in this time i'm not thinking about exploits/hijacking but i need this method to solve my problem.
YOU may not be!
BUT the developers of Firefox were (are) when they decided what methods should be exposed. Their intention was to make their browser secure from third party hijacking, so some methods are not public
It may be that you will have to write an extension (javascript) that the end user can install as a communication interface between the browser and your application.
__________________
Chris. ->> Please login or register to view this content. Registration is FREE <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
__________________
Chris. ->> Please login or register to view this content. Registration is FREE <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
and how i can do this in firefox ,,i see the bulid in javascript when writing (about:config) in the location of url but how i can insert the javascript code in the firfox and what is javascript code will be
« Reply to how i can open new process in the same tab is open by previous process in firfox brow