Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 226
  • Last Modified:

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!
0
travelgr
Asked:
travelgr
  • 3
  • 2
  • 2
  • +4
1 Solution
 
AbulhallajCommented:
try to use "_self", maybe usefull
0
 
travelgrAuthor Commented:
"_self" opens the link in the explorer bar
0
 
smaccariCommented:
Did you try target="_parent"?
Else, you have to put target="frameName" where frameName is the name of the frame defined in your frameset.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
sirenoCommented:
how about "_parent"?
0
 
travelgrAuthor Commented:
"_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
0
 
LawrenceAlanCommented:
did you try _content?
0
 
KennyTMCommented:
Are you sure "_main" does NOT work? According to

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

"_main" should be the target.
0
 
KennyTMCommented:
(the info is somewhere in the "IMPORTANT:" subsection)
0
 
mrikardCommented:
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();

0
 
AbulhallajCommented:
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
0
 
AbulhallajCommented:
And in other hand you can use this code:
and the search bar html code maybe like this

<base target=_main>
<form method=ANYTHING action=ANYTHING target=_self >
  any input box and button to submit
</form>

Your links come here and not need to set target=_main for any HREF anymore

"I use this code and test it to create a temp search bar and it's work correctly in IE6"
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
  • 2
  • 2
  • +4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now