Avatar of Stefan Motz
Stefan Motz
Flag for United States of America asked on

Popup window with Yes and No options

Hi Experts,

When I open MyPage.html I would like a popup window open with a Yes and a No buttons and a text above them saying "Would you like to stay on this page?".
When users click the Yes button the popup should close and they could view the content of MyPage.html
When they click the No button they should be directed to http://www.yahoo.com

How can this be accomplished with JavaScript or jQuery?

Thank you for your help
JavaScriptjQuery

Avatar of undefined
Last Comment
Stefan Motz

8/22/2022 - Mon
SOLUTION
Snarf0001

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Stefan Motz

ASKER
Thank you Snarf0001 !
This is nice, but what I really need is one Yes and one No button on the page. This popup has an OK and a Cancel button. How can the text in the buttons be changed to Yes and No?
ASKER CERTIFIED SOLUTION
Chris Stanyon

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Stefan Motz

ASKER
Thank you Chris, this looks great. I just have difficulties finding the links to the jQuery library. Is it possible that you can provide me with the links so that I can place them in my html page?
Chris Stanyon

Hey Romsom,

Here's a page that will give you links to the libraries and the themse that are hosted by Google and Microsoft:

http://lab.abhinayrathore.com/jquery_cdn/
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
Stefan Motz

ASKER
This is very useful, thank you so much!