Contact Form 7 Redirect Based On Form Field

I needed to create a form that redirects the user to separate PayPal accounts depending on selection criteria in the form.  In this case, a radio button. Fortunately, Contact Form 7 has a nice little feature (action hook) called: on_sent_ok This action hook will allow you to execute javascript code once the form email is sent.  The full syntax is: on_sent_ok: …

Webpage Redirect

Webpage Redirect   The webpage redirect code is used to automatically redirect to another page when your user lands on the page. <html> <head> <title>Page Title</title> <SCRIPT LANGUAGE=”JavaScript”> redirTime = “0”; redirURL = “http://www.anotherwebpage.com”; function redirTimer() { self.setTimeout(“self.location.href = redirURL;”,redirTime); } </script> </head> <body bgcolor=”#FFFFFF” text=”#000000″ onLoad=”redirTimer()”> <h2>Page Header</h2> <a href=”http://www.anotherwebpage.com”>Click here if you are not redirected.</a> </body> </html>

Select Radio By Clicking Table Row

This code will set an event on a table row, so that when the row is clicked, the radio button is select.  It is used to easily select a radio button associated with the row.  jQuery can also do this with a smaller coding foot print.  This is just an example of how you might provide this functionality with JavaScript. //************************************************************************************************************* …

DOM Check Using Javascript

DOM Check was a snippet of code I found early in my education of JavaScript.  I still use it occasionally.  It will show all the DOM objects in your page.  DOM Check is very easy to use.  Simply add the button inside your form, and the Javascript to the bottom of your HTML page prior to the closing BODY tag. <input …