In article <KP******************@tornado.tampabay.rr.com>,
ne**@aznfetish.com
enlightened us with...
That makes sense but Im still a bit lost new to this javascript
Someone else wrote your other script, too, eh? ;)
Assumes: this function is being loaded in a popup window with the opener as
the page in question. If this is NOT the case and the alert is running right
in the main window, change the word "opener" to the word "window" (no
quotes). I wasn't sure what you meant by 'popup a box'.
function loadalert()
{
if (!confirm(alertmessage))
{
// they cancelled: go back to home page
opener.location.href = "yourHomePage.html";
}
else
{
// load content into opener
opener.location.href="theAdultContent.html";
}
}
--
--
~kaeli~
If a turtle doesn't have a shell, is he homeless or naked?
http://www.ipwebdesign.net/wildAtHeart http://www.ipwebdesign.net/kaelisSpace