|
-
Feb 26th, 2009, 08:39 PM
#1
Thread Starter
Fanatic Member
[RESOLVED] Want only one web page for site to be open
I'm new to Asp.net and workiing with web site code. My site just has 4 pages in it now. I noticed that the home page always stays open unless you manually close it. If you navigate away from it a new page will open. What do you do so that only one page will remain open for your site. Perhaps in some situations you would want a second page to open and maybe in the future for certain situations I will with my site but how do you control that. I want the window that is open to navigate to the new page selected on the menu and no new window to open. My home page has little content and loads quickly anyway so I don't need it to remain open.
 Make as many mistakes as you can as quickly as you can. We want to make sure that we make a great enough number of mistakes in a given amount of time so that we can be successful.
"Persistence is the magic of success." Paramahansa Yogananda
-
Feb 27th, 2009, 06:15 AM
#2
Re: Want only one web page for site to be open
Well, it's the default behavior that a link to a page open in the same window. If you're clicking links and it opens new windows, then there's a problem with your links. Are you calling window.open() on them?
-
Feb 27th, 2009, 09:52 AM
#3
Thread Starter
Fanatic Member
Re: Want only one web page for site to be open
I just installed Firefox and started using it. I noticed that only one window stays open for my site with Firefox but with Internet Explorer 7 a second window will open. After that no matter how you jump around no more windows will open. I'm not using window.open() anywhere.
 Make as many mistakes as you can as quickly as you can. We want to make sure that we make a great enough number of mistakes in a given amount of time so that we can be successful.
"Persistence is the magic of success." Paramahansa Yogananda
-
Feb 27th, 2009, 10:17 AM
#4
Thread Starter
Fanatic Member
Re: Want only one web page for site to be open
My site is www.taylorentertainment.biz you could check out the source code on the pages that way if you like. There's a problem with Firefox placing the text at the left edge but with Internet Explorer 7 the text is centered.
 Make as many mistakes as you can as quickly as you can. We want to make sure that we make a great enough number of mistakes in a given amount of time so that we can be successful.
"Persistence is the magic of success." Paramahansa Yogananda
-
Feb 27th, 2009, 02:43 PM
#5
Re: Want only one web page for site to be open
Here's your problem. You've got a target attribute specified
target=">"
The browser interprets this as a new window with the name ">". You need to remove your target attribute.
Also, firefox opens a new tab when you click on something which is their equivalent of a new window (just to keep things 'together') while Internet Explorer keeps its default from the "good old" days.
-
Feb 28th, 2009, 08:04 AM
#6
Thread Starter
Fanatic Member
Re: Want only one web page for site to be open
That did the trick. Thanks. You just earned some points towards your 12th green gem.
 Make as many mistakes as you can as quickly as you can. We want to make sure that we make a great enough number of mistakes in a given amount of time so that we can be successful.
"Persistence is the magic of success." Paramahansa Yogananda
-
Mar 2nd, 2009, 02:34 AM
#7
Re: [RESOLVED] Want only one web page for site to be open
Thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|