Jump to content

Kaekilia

Recommended Posts

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

I'd use a hidden div that you can toggle its display with javascript. It's simple and easy.

Edited by niche
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...