View Single Post
Old 01-23-2012, 08:38 AM   PM User | #2
felgall
Master Coder

 
felgall's Avatar
 
Join Date: Sep 2005
Location: Sydney, Australia
Posts: 5,465
Thanks: 0
Thanked 499 Times in 491 Posts
felgall is a jewel in the roughfelgall is a jewel in the roughfelgall is a jewel in the rough
You can't force your visitors to do anything using JavaScript - they can always either turn off your script or override it with their own.

There is no guarantee that a lightbox will ever open to start with but if you were to open one without any controls to close it your visitors would still be able to disable JavaScript for the page and then refresh the page in order to access the main content behind the lightbox without having to interact with it at all.

If you want to force people to complete something before being able to access something then you need to make it two separate pages linked together with a server side script that only permits access to the second page when sufficient information is passed from the first page.
__________________
Stephen
Learn Modern JavaScript - http://javascriptexample.net/
Helping others to solve their computer problem at http://www.felgall.com/
felgall is offline   Reply With Quote