in need of some simple code - help

They have: 1,587 posts

Joined: Mar 1999

hello:

i'm looking for javascript code for one of those text then yes or no pop ups. if they select no they stay where they are, if they select yes they're teleported to another page.

thanks in advance

----------
Isn't it time you started making money with your site!
http://www.birminghamnet.com/cgi-bin/links/pages/WebmasterResources/MakingMoney

Traffic-Website.com free traffic, affiliate programs, hosting, & domain names.
My Site got hacked, but i'm coming back?

They have: 62 posts

Joined: May 1999

Hey-
Have you checked www.javagoodies.com? They might have something like that.

----------
Casey Hansen
www.caseynet.com

They have: 1,587 posts

Joined: Mar 1999

thx, but i couldn't find what i'm looking for there. anybody else got any ideas?

----------
Isn't it time you started making money with your site!
http://www.birminghamnet.com/cgi-bin/links/pages/WebmasterResources/MakingMoney

Traffic-Website.com free traffic, affiliate programs, hosting, & domain names.
My Site got hacked, but i'm coming back?

John Pollock's picture

He has: 628 posts

Joined: Mar 1999

Yes, confirm boxes will do it.
Also see:

http://www.pageresource.com/jscript/jconfirm.htm

for further explanation of how it works. Smiling

----------
Page Resource: http://www.pageresource.com
JavaScript City: http://www.javascriptcity.com

They have: 5,633 posts

Joined: Jan 1970

if (confirm('MESSAGE HERE') == true) {
// PRESSED OK
}
else {
// PRESSED CANCEL
window.location.href = "URL HERE";
}

----------
[email protected]
vegas.com.au/~jasper

They have: 1,587 posts

Joined: Mar 1999

thx folks, i got it working.

thanks again

birminghamnet.com

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.