Kaekilia Posted June 24, 2012 Share Posted June 24, 2012 Hi. I'm brand new to this forum and to JavaScripting, and I hope someone can help me. I'm trying to get an onload alert box to work in my favor. What I want it to do is pop up as soon as someone loads on my website. I have that scripted and working, but I can't figure out this next part. What I want the onload alert box to do is give 2 options: Yes or No. Clicking the yes button will redirect visitors to a new window while no closes the box. Can someone please help me script this? Link to comment Share on other sites More sharing options...
niche Posted June 24, 2012 Share Posted June 24, 2012 (edited) I'd use a hidden div that you can toggle its display with javascript. It's simple and easy. Edited June 24, 2012 by niche Link to comment Share on other sites More sharing options...
Kaekilia Posted June 24, 2012 Author Share Posted June 24, 2012 I have no idea what that means... Link to comment Share on other sites More sharing options...
niche Posted June 25, 2012 Share Posted June 25, 2012 Have you done any of the tutorials? Link to comment Share on other sites More sharing options...
Don E Posted June 25, 2012 Share Posted June 25, 2012 This probably will help ya: http://www.w3schools.com/jsref/met_win_confirm.asp Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now