Peter.kuzek Posted March 15, 2007 Share Posted March 15, 2007 i am having a issue with my Template for a website. when i have a <img src> or <a href> they go to the main page when i want them to go to a new blank page <html> <body> <a href="testphoto.htm" Target=blank>test photos</a> </body></html> thats the link to the photo page and it comes up in the page defined as main not blank <html> <body><h1> Test Image </h1> <img src="20040414.jpg"> </body></html> this is the actuall desplaying page but due to the previous one it wont go to a new page so it wont show. are there any suggestions?*note i am using frames in my standard page* Link to comment Share on other sites More sharing options...
justsomeguy Posted March 16, 2007 Share Posted March 16, 2007 When you are using the target attribute with a link, you need to know how that works. If you give a window name, like this:<a href="" target="some_window">First the browser will look for an existing window called "some_window". If it finds one, it will load the file in that same window. If it does not find one, it will open a new window with that name and open the file there.So, since you use the name "blank", the browser might be re-using a window called "blank" and opening everything in that same window. If you always want it to open in a new window no matter what, the name to use is "_blank". Link to comment Share on other sites More sharing options...
MrAdam Posted March 18, 2007 Share Posted March 18, 2007 also, ' target="blank" ' ... needs to be ' target="_blank" ' ..EDIT .. noticed "_blank" issue covered on 'justsomeguys' post. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now