Logged Out
Create an Account
Login:
Password:

Forgot your password?
Open link in same window?

Open link in same window?
[Back to Index]  [Bottom of Thread]
Thread Tags
Primary: [Advanced Layout]
Secondary: None
So I added a tiny little script to randomly rotate my banner images on my site. Works great, except now when you click the banner itself the site opens in a new window. Before I changed this it would simply load the news page in the same window.

I've removed the link since then because it was frustrating me, so if you look at the layout you'll only see the banner script and no link. Can any recommend a way to get the banner click to load in the same window instead of opening a new one?

--
Ieyasu - Organizer, Ex Cineribus
You can use the target attribute on a link to accomplish that:

I'm making a guess that your link may already have target="something" on it - if it does, remove that and it shouldn't open up in a new window

If your link doesn't have that - try: <a target="_top" href="some/URL">Linky!</a>
Spot on, I did have a target= in there, and taking it out immediately corrected the problem. Thanks a bunch!

--
Ieyasu - Organizer, Ex Cineribus


[Back to Index]  [Top of Thread]