Welcome to TalkGraphics.com
Results 1 to 6 of 6
  1. #1
    Join Date
    Jan 2006
    Location
    Los Angeles
    Posts
    945

    Default Button to close web site

    I inherited a web site written using Joomla! Some things work well, but not the menus. I have a lot of old news letters that I want to show. My thought was to just build a page in XDP10 to link to all the PDFs. I have it working as far as opening the Xara page and seeing the menu. Now I want to be able to use a button to close this web page and return to the Joomla! page I started from. Looking for info, I can see how to close a popup layer, but not how to close the actual page.

    Thanks
    Grace
    http://gracehjs.com/
    Xara Software XDP11

  2. #2
    Join Date
    Sep 2000
    Location
    Bracknell, UK
    Posts
    8,659

    Default Re: Button to close web site

    You don't close web pages, you just navigate to another one.

  3. #3
    Join Date
    Jan 2006
    Location
    Los Angeles
    Posts
    945

    Default Re: Button to close web site

    The problem is, I am trying to mesh two different things here. In joomla! I have an external URL, this sends me to a new tab regardless. So, now I have an new page open and need to close it to get back to my original web site. If I make the home button "If1airracing.com" it opens up a new tab :-(. So, I really need to close the Xara generated page.
    Grace
    http://gracehjs.com/
    Xara Software XDP11

  4. #4
    Join Date
    Sep 2000
    Location
    Bracknell, UK
    Posts
    8,659

    Default Re: Button to close web site

    Well, the links are telling the browser to open that new tab. You should still have the old tab with the site there. It wouldn't be a great situation if browser windows could shut down browser tabs on demand.

    There used to be ways of doing this via javascript from the opening window, but really it's bad practice.

    The moral here is - if you only want one tab open on your website at a time, don't use _self for your link target.

  5. #5

    Default Re: Button to close web site

    Code:
    javascript:self.close();
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	2015-03-23_101405.jpg 
Views:	110 
Size:	26.3 KB 
ID:	106740  

  6. #6
    Join Date
    Jan 2006
    Location
    Los Angeles
    Posts
    945

    Default Re: Button to close web site

    O.K., I figured out how to stay on the same page. And a link to "previous page" works.

    Thanks
    Grace
    http://gracehjs.com/
    Xara Software XDP11

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •