Hi yes I found the script on the web that I posted,
What I need is a popup box as in the litle alert box to load when I go to
the page for the first time in that session. The script I posted does that
but has 1 option an "ok" option I want to have like a Yes or NO option and
if no is hit go back if yes the continue to load that page
Thanks for your help
"kaeli" <tiny_one@NOSPAM.comcast.net> wrote in message
news:MPG.1cc04a52f96e281498a481@nntp.lucent.com...[color=blue]
> In article <KPh5e.24040$vd.22741@tornado.tampabay.rr.com>,
>
news@aznfetish.com
> enlightened us with...[color=green]
>> That makes sense but Im still a bit lost new to this javascript
>>[/color]
>
> 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
>[/color]