Reputation: 1
Little back story:
Our department has a 'dashboard' that we utilize for quick links and tools that we utilize often. The guy that developed the original page found a new job - and no one else in our department knows HTML at all. I volunteered for this project figuring I could learn a bit and try something new. Not sure if I bit off more than I can chew now though.
Long story short the original page was designed literally back in the 90s so I wanted to see if I could do some aesthetic updates on top of some functional updates. I've managed to teach myself enough to understand the basics, but now that I"m trying to develop the functional updates I seem to be running into some troubles.
There is a tool that our department uses called "Associate Search" it's a company directory we use as part of our call center duties. If we put a first or last name into the search field we get that associates photo, department, phone extension, etc.
The problem I'm running into is this - when clicking the link it opens into a new tab in IE and Chrome. But I want the link to open open in the same page - with the same side bar.
I've attached screenshots to show what I'm thinking. I apologize if this is a huge newb question - but i am a 100% newb at this lol so any help would be much appreciated.
Here is what the site currently looks like:Current Page
Here is a rough idea of what I'm trying to achieve:
Current Code:
<!-- Nav -->
<nav id="nav">
<ul>
<li class="current"><a href="#">Home</a></li>
<li><a href="#">Archives</a></li>
<li><a href="http://***.com/public/associatelookup.asp">Associate Search</a></li>
<li><a href="#">Contact Me</a></li>
<li><a href="#">Contact Me</a></li>
<li><a href="#">Contact Me</a></li>
<li><a href="#">Contact Me</a></li>
</ul>
</nav>
Upvotes: 0
Views: 1736
Reputation: 93
As Dryden mentioned, it sounds like you have a target="_blank"
in your anchor tag.
target="_self"
will open it up in the same page (this is default).
With the new information here a somethings you could do, be aware this list is by far from exhaustive but are three simple solutions to achieve your desired result.
Upvotes: 1
Reputation: 1987
Usually target="_blank" tag will be there which makes a click on the link open in new page.. remove that attribute in a href tag(link).
<a href="www.abc.org" target="_blank">Visit abc</a>
Opens the link in new tab
<a href="www.abc.org" >Visit xyz!</a>
Opens the link in same tab
Upvotes: 0
Reputation: 2403
Usually pages open in a new tab when the link has the target="_blank"
attribute set on them. Check in your code if there is such thing, remove it and see what happens.
Upvotes: 0