How to make page loading in a new tab in IE8?

What combination of html and IE8 settings allows IE8 to open links in a new tab. Or you can’t do it with IE8, and you only get new tabs, manually selecting the tab “File-> new / duplicate”?

My site works in Firefox - the site’s download pages on the current tab, and links outside the site load a new tab. IE8 will not behave: target = "_ blank" opens a completely new window; other parameters _self _top _parent, all open the page in the current tab.

I have Firefox set to "Open new windows in a new tab." Links to pages on my site all have target = "_ self", and Firefox saves them in the current tab. I don’t have a target set on external links (I added _blank to check if it fixed IE8, and this did not affect Firefox).

I can not find the equivalent setting in IE8. Tools-Browser Properties - General Tabs / Settings have the "Permissions" tab window and an additional parameter for automatically switching to newly opened tabs. Is there any html that will work? Is IE8 setup missing?

Any help appreciated.

+3
source share
5 answers

( ). IE8 - , . Firefox .

+2

, HTML-, , , .

, IE8:

Internet Explorer "". . "" "" . . OK.

: OPs , , . , , - . , script, "target", , "" Document Object Model , , script.

+3

, - , . Firefox , IE .

html 4.01 spec "_blank":

, .

, .

+1

- , , , html. Firefox - , IE8.

-, /. , , /?

, , , , /. , .

.

+1

I think W3.org is still working on this issue , but it has not yet been implemented in any browser. Also remember that Internet Explorer will be the last browser to implement it;)

This is the code copied from the W3 working draft:

/* If a user wanted to have new windows open in new tabs instead, she could use the following user style sheet to do so: */

* { target-new: tab ! important }

Of course, it is not possible to set user preferences in HTML or Javascript - it will be unsafe.

+1
source

Source: https://habr.com/ru/post/1736813/


All Articles