[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.
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?
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.
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.
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.
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.
Re: [RESOLVED] Want only one web page for site to be open