It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming HTML Forum

htm pages not closing right

htm pages not closing right

Postby spivei on Fri Jan 12, 2007 3:27 am

Hi
I have a website and the html pages do not auto close when a page link is clicked. The user must close each page that was opened manually. Can anyone please tell me what I have done wrong or what I need to do in order for the previous page to a clicked link page to close by itself (like all the oter sites do). All pages have a .htm and the start page is index.htm
Any help please. Thank you Jon :cry: [/b]
spivei
 
Posts: 4
Joined: Fri Jan 12, 2007 3:22 am

Postby webmaster on Fri Jan 12, 2007 9:13 am

Hi and welcome to DEVPPL.

When you click on a link, does it open in a new window then?
Make sure to check out our TNX Review and Link Vault Review
User avatar
webmaster
Site Admin
 
Posts: 2695
Joined: Tue Aug 17, 2004 1:07 pm
Location: Sweden

Postby spivei on Fri Jan 12, 2007 8:55 pm

Yes the link opens, but when you x out of the opened page the original page is still open. If you used2,3 4 or more links they all open, but on top of each other. The original page that you used the link on is under each page you clicked to and the one before that and so on...they stay open. This has resulted in a user having a page open for 16 hours (as I use a site counter w info to track, that was the longest but others were long as well...plus it is irriating to the users.
Thanks
Jon
spivei
 
Posts: 4
Joined: Fri Jan 12, 2007 3:22 am

Postby ReFredzRate on Fri Jan 12, 2007 9:10 pm

Could you pass me a link to check out what you're meaning? I'm getting a bit confused.
ReFredzRate
1000+ Club
 

Postby spivei on Fri Jan 12, 2007 9:14 pm

sure, please visit my site.
www.nightshift-nw.com
Thx
spivei
 
Posts: 4
Joined: Fri Jan 12, 2007 3:22 am

Postby ReFredzRate on Fri Jan 12, 2007 9:27 pm

I'm not sure whether there is a real problem. It's normal (as far as I know) that when you click a link, it opens a new window on top of the old one.
ReFredzRate
1000+ Club
 

Postby spivei on Fri Jan 12, 2007 11:53 pm

No it is NOT normal. When you go to the home page here and click the forum link the home pages DOES NOT stay open under the forum page.
On my site the index page stays open after you enter thr home page link then if you click to rsvp page the index page, home page and the rsvp are open the top page being the rsvp followed by home page and index. These other pages SHOULD NOT BE STILL OPEN. They should have closed by themselves when you went to the lonked page. As it is you must x out (close) the rsvp page then the home page is still open you x out (close the home page and the index page is still open.....this is NOT RIGHT all other sites I visit the pages are closed and the clicked link page is all that is open if you want to visit the previous page you MUST use the back button on your browser.
THX
spivei
 
Posts: 4
Joined: Fri Jan 12, 2007 3:22 am

Postby webmaster on Sat Jan 13, 2007 6:16 am

You have to add a target to your link, like this:
Code: Select all
<a href="the-link.html" target="_self">Link</a>


Just change the "the-link.html" and it should work. There are 4 different targets that you can use:
* _blank - the target URL will open in a new window
* _self - the target URL will open in the same frame as it was clicked
* _parent - the target URL will open in the parent frameset
* _top - the target URL will open in the full body of the window
Make sure to check out our TNX Review and Link Vault Review
User avatar
webmaster
Site Admin
 
Posts: 2695
Joined: Tue Aug 17, 2004 1:07 pm
Location: Sweden


Who is online

Users browsing this forum: No registered users and 15 guests