I have a form built on a standalone PHP page, but I've only want that page to be access when it's being requested via jQuery Colorbox.
You can see the website in question here: http://tinyurl.com/96uhuer
When the user clicks on one of the 'Email Us Now' buttons the form pops up in Colorbox. However, as an example, the user could right click on the button and choose to 'Open in a new tab', which would open the form's standalone page.
If anyone has any ideas on how to resolve this I would really appreciate it.
Thanks!
Also user could click center mouse button and etc. The simplest solution is remove link, then you can opel dialog like this:
$.colorbox({href:'http://www.formurl.com/form.php'})
this solution show's hard coded link, but you can create css class
and data-attribute
and then read it on click
event.