[thelist] Javascript back button in a popup

Phil Essing phil at sector404.org
Fri Nov 8 22:47:00 CST 2002


Derry,

Here's a function for your decline button that will send the parent
window back to its previous location, and close the popup.

function decline() {
	opener.window.location = "history.go(-1)";
	self.close();
}

Good luck!

-phil


------------------------------------------------------------------------
-----------------
Phil Essing
phil at sector404.org

Visit me on the Web at: http://www.sector404.org
------------------------------------------------------------------------
-----------------



> -----Original Message-----
> From: thelist-admin at lists.evolt.org
> [mailto:thelist-admin at lists.evolt.org] On Behalf Of Derry Talvainn
> Sent: Friday, November 08, 2002 11:12 PM
> To: thelist at lists.evolt.org
> Subject: [thelist] Javascript back button in a popup
>
>
> Hi all,
>
> Back again with this client who insists on having terms and
> conditions in a popup on entering the site with an "I accept"
> button before the client can get full access.
>
> I have:
>
> put onblur=this.focus on the popup to force the user to read it
>
> Put a self.close() in a function on the "I accept" button at
> the bottom of the popup so that the user can get access to
> the full website if they click on it
>
> put in a script that reopens the window if the user tries to
> close the window using the X in the corner of the popup.
>
> (Okay this is all very annoying but the client wants it and I
> understand his reasoning). The client understands this is not
> totally secure but he is happy that it gets the message of
> not using the site without accepting the conditions across.
>
> Now I want to put an "I decline" button on the site that will
> send the user back in history to the previous web page they
> were on before this website. But when I use history.back() or
> history.go(-1) it doesn't work within the popup (works fine
> if on the home page).
>
> Does anyone have any idea about how to put a back button in a
> popup that will take the user to the previous site they were on?
>
www.interretire.com

Derry Talvainn
Artema Interactive Design
Learn to respond, not react

--
* * Please support the community that supports you.  * *
http://evolt.org/help_support_evolt/

For unsubscribe and other options, including the Tip Harvester
and archives of thelist go to: http://lists.evolt.org
Workers of the Web, evolt !




More information about the thelist mailing list