How can I get local web pages to always open in a new window in XP? - html

I am running windows XP 2003 sp3. Ie is the default browser. If I have a web page open and then open a local web page it will always open it in the existing window. I want local web pages and url shortcuts to always open in a new window. How can I do this?

Somehow I don't think you are asking for programming help but I'm going to respond appropriate to the forum. Use the target attribute on your links to force browser window/tab actions. Valid standard options are: _self, _blank, _top, _parent. Use _blank to force the link to open in a new tab/window as per the default behaviour you have setup in IE.
Example

I don't think this can be done. The thing is windows XP will tend to open any local web page files and its shortcuts with the "Default Programs" that's mapped to that file type. So in your case, the IE being the default browser program, it opens in a new tab.
The same file will open up starting IE if there isn't any instance of IE already running. So I think the simple way to do your need is to have another IE instance running, and drag-drop the file you wan't to open into the IE window, which will open it.
P.S: other browsers like chrome allows dragging the tab outside the window to open up in a different window.

Related

Link of a PDF not working in Mozilla but works in Chrome

I made a button for a PDF download that is working well in Chrome but it doesn´t open in Mozilla.
This is the code I used:
<a target="_blank" href="http://gerster.com/docs/posamenten_neuheiten_2014_2.pdf">Jetzt PDF-Katalog herunterladen</a>
What could be wrong?
Note: No error is showing up.
Q Using window.open or "target=" such as blank it doesn´t open in ### Browser
What could be wrong?
It is up to each user to download or permit binary.PDF running in a browser viewport after download, this is especially true after download fron any non trusted site.
OOB many browsers assume they can sandbox the PDF download and then allow as default action review of the PDF file. Chromeium based browsers like Edge may be more inclined to use that before the user improves their security.
So the 1st task for a user should be to switch off Edge auto viewing of PDFs and switch to a more secure setting.
In that case Edge / Chrome and other browsers will NOT auto run the downloaded PDF but ask the user if they wish to View after Download or simply Download.
One of the possible values of that attribute is _blank, which tells the browser to open a new window (or tab, if that’s the user’s preference) when that link is clicked.
This used to be “invalid” in HTML
see A Bad Reason: The link is to a PDF
If you are going to do it, not only do you need the target attribute for the functionality, you need to rel attribute for security.
So do not open yourserver to security issues blacklist or pop-up blocking see https://mathiasbynens.github.io/rel-noopener/
Don’t use target=_blank (or any other target that opens a new navigation context), especially for links in user-generated content, unless you have a good reason

Silverlight Display Mixed Content crashes IE

So, I have an HTML page that includes a Silverlight xap file which plays a video. It works correctly while running locally and on our DEV environment when using Chrome or FF. The issue is when I am trying to view the video on our DEV environment using Internet Explorer. When doing so, it prompts me to Display Mixed Content. Whether I hit Yes or No, the browser crashes. I am able to go into my options and Enable Display Mixed Content, which fixes the issue and the video shows up correctly on the DEV environment using IE. But, this is not a good solution for a client facing site. Is there a way around this message to prevent it from crashing the browser?
A workaround for this is to use JavaScript to open the HTML page that contains the video in a new window. The user will still be prompted to Display Mixed Content, but it will not crash the browser and the video will play.

html code to open a file:// link in chrome browser that uses the chrome extension "open in IE" by default

Assuming everybody uses chrome browser;
So I am creating a wordpress blog for some friends. We use a shared network, and I want to create a link on that blog that when pressed opens up a folder in internet explorer.
The current html code is
I am using a chrome extension called "open in IE" , but to use it requires a right click then choosing an option within the menu. This process is too long and I want to simplify it.
Is there any html code I can write that make it open that file:// link using the "open in IE" extension by default? The goal is to be able to left click the link in chrome and have a window explorer open with the files in it.
Cheers
Unfortunately, targetting a specific browser to open on a clicked link is not possible.
Unless you modified some of their internal registry or used an activex plugin, it is just not a supported feature at this time.
You will most likely need to hard code some javascript.
I believe it is possible to reference installed extensions from your code using chrome.extensions.
Reference here, http://developer.chrome.com/extensions/extension.html

How to open a windows folder when clicking on some link on a HTML page using Python

I am writing following program :
***import os
filepath=r'C:\TestData\openfolder.html'
abc=open(filepath,'w')
abc.writelines('<html><head></head><body>')
abc.writelines('First Link\n')
abc.writelines('</body></html>')***
What I want to do is if I click First Link on a browser, I should be able to open the folder having path as "Filepath". os.startfile works perfect for opening a folder but I don't know how to implement this inside some link.
Thanks.
Try to use URI with file: scheme like file:///C:/TestData/openfolder.html in your html:
Link to test data
Here is article on using file URIs in Windows.
UPD (extraction from comments): Each browser has its own way to handle such urls. At least Internet Explorer 8 under Windows 7 opens links in Windows Explorer as was required by jags.
Finally, for dynamic pages the web server is required. If one is needed take a look at discussion on creating simple web services using python.
You can't. Clicking a link to a file in a browser will not launch the application associated with that file type on the OS. You can apparently do some funky stuff with JavaScript to launch particular filetypes with particular applications (see here: http://forums.devshed.com/asp-programming-51/launching-ms-word-to-open-file-from-a-hyperlink-55714.html) but apart from that the web browser is not the file browser.
Link Text
Replace FOLDER_PATH with the path of the folder you want to open in explorer.
Alain's answer works.
<'a href="FOLDER_PATH" target="_explorer.exe">Link Text<'/a>
I removed the tick marks at the beginning and end, and found that it works in
Internet Explorer - opens a Windows Explorer window
Firefox (Windows and Linux), but opens a new tab - same as target="_blank"
Chrome - opens a new tab like Firefox
I also noticed that / and \ (forward and backward slashes) are equal in html links - they can even be mixed.

Force links in lotus notes emails to always open in a new window?

I'm using C# to generate emails that are read using Lotus notes. The problem is we want the links to always open up in a new window in IE but they always open in the same window when I use "Lotus Notes - Basic Edition" (8.0.1) but when I use the regular lotus notes 8.0.1, they always open up in a new window. I tried looking around in the preferences but can't find a setting that'll explain this.
(note: I'm using IE 8 as my default browser. If I change it to chrome or FF this doesn't happen)
Not sure you are still facing this problem or not, but for the sake of other users posting the solutions.
In Location Preferences, under Internet Browser, don't select "Microsoft Internet Explorer", instead select others and then browse to path of Internet Explorer -
"C:\Program Files\Internet Explorer\IEXPLORE.EXE"
Save it. Now your links will always open in different IE window.
When you generate the emails, are you able to enter HTML code for the links? If so, perhaps you just need to add a target="_blank" attribute?
The preferences for which browser to use in Lotus Notes are set on the client's location document, so I'm not sure if that's part of the issue your having?
This sounds more like an admin question, but the link will get opened based on the preferences in the individual client. In 8 basic the location document controls this. Edit the current location document and go to the Internet Browser tab. You can then choose which browser to use. It sounds like you have it set to use IE inside notes, rather than separately.
The fact you can open links properly with Firefox, Chrome means the issue is not with Lotus Notes.
I have seen issues where IE wasn't working with _Blank. Switching off UAE resolved the issue.