Christoph
(Christoph)
January 5, 2009, 4:35pm
1
Hi,
i would like to use a POP-UP window to promote something on the pape (link).
Is it possible to close the POP when the user is clicking the link?
Thx
Chris
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options
waltd
(Walter Davis)
January 5, 2009, 5:04pm
2
You can, but you need to make the link happen in the JavaScript side of things as well. Here’s what the raw HTML code would look like:
<a href="some_page.html" onclick="window.opener.location.href='some_page.html'; return self.window.close();">Some Page</a>
To get that into Freeway, you would use the Hyperlink dialog to modify the link. Make the link as you normally would, then press the Extended button. Press New to add a new Name/Value pair:
name
value
onclick
window.opener.location.href='some_page.html'; return self.window.close();
Make sure that you substitute your actual page filename for some_page.html.
Note that this code (self.window.close()) will only close a window if it was itself opened with JavaScript. Most modern browsers will not allow you to close a manually-opened window in this manner.
Walter
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options
Christoph
(Christoph)
January 6, 2009, 9:24am
3
Thx, thats fine
how can i reduce the boders to minimum?
Chris
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options
waltd
(Walter Davis)
January 6, 2009, 3:54pm
4
Sorry, you lost me there. Borders on what?
Walter
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options
Christoph
(Christoph)
January 6, 2009, 4:30pm
5
Sorry Walter.
I just want to now if it’s possible to reduce the popup:
Means no navigation border, no scrolling …
thx
Chris
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options
waltd
(Walter Davis)
January 6, 2009, 4:34pm
6
Sure. If you use an Action to create it in the first place: Spawn New
Window or Link to New Window are the choices there. SNW has lots more
features, and can control the window placement as well as its geometry
and features.
Walter
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options
Christoph
(Christoph)
January 8, 2009, 1:01pm
7
Thx, SNW looks very nice - but how can i open the pop-up automaticly?
thx
Chris
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options
Christoph
(Christoph)
January 8, 2009, 1:44pm
8
sorry - its the Version Timed Span New Window
Chris
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options