Link to home
Start Free TrialLog in
Avatar of travelgr
travelgr

asked on

Open link in main IE window

Hello,

I've got an Explorer Bar in Internet Explorer which hosts an HTML page.
This explorer bar shows in the left side of the window.

I want to be able to open any URL's clicked from that bar, in the main browser window.
I've tried in my HTML page to put for the link target="_main" , target="_top" but it still doesn't work.
When I set target = "main" it opened the link in the right side of the window, but in a new window.

How does one do this?

Thanks in advance!
Avatar of Abulhallaj
Abulhallaj

try to use "_self", maybe usefull
Avatar of travelgr

ASKER

"_self" opens the link in the explorer bar
Did you try target="_parent"?
Else, you have to put target="frameName" where frameName is the name of the frame defined in your frameset.
how about "_parent"?
"_parent" doesn't work either . i don't use frames. the html in explorer bar is one window and the main window is something different.. is external
did you try _content?
Are you sure "_main" does NOT work? According to

http://support.microsoft.com/kb/q171853/

"_main" should be the target.
(the info is somewhere in the "IMPORTANT:" subsection)
Page 1: main page that contains all useful information
Page 2: page that contains links that need to go to page1

so far so good

You also need a 3rd page, so your schema goes something like this:

Page1: Opens a new window, giving it a name, something like (<a href="newWindow.html" target="myMainPage" href="link">some text</a>)
or "window.open("page2.html","myMainPage","");"

Page2: The page you just opened, you can now do away with Page1, you don't need it anymore
page3: Page with links, set your target on each link to "myMainPage"

you can also forcibly close some browsers, depending on what security settings they have installed. (code below)

window.opener=top;
window.close();

OK , i found the problem

Try to use "_main" (main and _main is have some diffrences)

when you use an html page instead of IE search bar you  have two option in your link's open. "_self" open link in search bar and "_main" open link in main IE page
ASKER CERTIFIED SOLUTION
Avatar of Abulhallaj
Abulhallaj

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial