Results 1 to 7 of 7

Thread: [RESOLVED] Want only one web page for site to be open

  1. #1

    Thread Starter
    Fanatic Member EntityX's Avatar
    Join Date
    Feb 2007
    Location
    Omnipresence
    Posts
    798

    Resolved [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

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    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?

  3. #3

    Thread Starter
    Fanatic Member EntityX's Avatar
    Join Date
    Feb 2007
    Location
    Omnipresence
    Posts
    798

    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

  4. #4

    Thread Starter
    Fanatic Member EntityX's Avatar
    Join Date
    Feb 2007
    Location
    Omnipresence
    Posts
    798

    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

  5. #5
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    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.

  6. #6

    Thread Starter
    Fanatic Member EntityX's Avatar
    Join Date
    Feb 2007
    Location
    Omnipresence
    Posts
    798

    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

  7. #7
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    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
  •  



Click Here to Expand Forum to Full Width