[Express] Closing Window

Hi, everyone.
I have a problem I can’t figure out.
My main page, when a link is clicked, generates a popup window. I would like to have a button or a link that closes the popup window.
I can’t get this to work. Can anyone help?
Thanks!


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

My main page, when a link is clicked, generates a popup window.

Do you mean that you intentionally open a pop up? Or is this an unwanted effect of something you have done ie adding target: _blank

With any question if you can supply a link to a page online where you are having problems it means we can see the underlying code structure of your page and more easily diagnose your issues.

David


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

So sorry for the confusion.
The popup is quite intentional.
I just want a way to close it.
The site is: publicadministrator.org
Thanks!


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

If you create a link inside the page that loads into the popup window, you simply have to add this URL to it to close the current window. Note that JavaScript may only be used to close a window that was opened by JavaScript. If you add this link to the main page, it will be ignored.

javascript:window.close()

Paste that URL into the External tab of the Hyperlink dialog, while you have your link text or graphic selected. Do not include any other text in the URL.

Walter

On Mar 7, 2014, at 8:04 PM, Yeled wrote:

So sorry for the confusion.
The popup is quite intentional.
I just want a way to close it.
The site is: publicadministrator.org
Thanks!


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks for the replies.
Still very confused.
What URL do I use?
Could someone explain in a very baby step way how I have a link that closes its own window?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

  1. Draw a graphic box (or enter some HTML text, and highlight it).

  2. Press Command-K (Edit / Hyperlink).

  3. Click on the “External” tab of the dialog, and paste in the following code exactly, without any additional text to either side of it:

    javascript:window.close()

That’s it. Done.

Walter

On Mar 8, 2014, at 10:12 AM, Yeled wrote:

Thanks for the replies.
Still very confused.
What URL do I use?
Could someone explain in a very baby step way how I have a link that closes its own window?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Forgot to say in my previous reply, start the first step on one of the pages that you wish to close, not on the main window. So each of the mini-pages that you open from your main page would get this same link. (You can copy and paste from one page to the others once you build one of them.)

Walter

On Mar 8, 2014, at 10:12 AM, Yeled wrote:

Thanks for the replies.
Still very confused.
What URL do I use?
Could someone explain in a very baby step way how I have a link that closes its own window?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options