Javascript Manual

HTML =

<a onclick="return popitup('https://courses.students.ubc.ca/cs/main?pname=subjarea&amp;tname=subjareas&amp;req=1&amp;dept=ADHE')" href="https://courses.students.ubc.ca/cs/main?pname=subjarea&amp;tname=subjareas&amp;req=1&amp;dept=ADHE"></a>

......................................................................................................................................

JS =

function popitup(url) {
newwindow=window.open(url,'name','height=500,width=750');
if (window.focus) {newwindow.focus()}
return false;
}

 

You can use the Redirection Tool under Tools> Redirection to add a new redirect rule OR you can use the following custom javascript to the page or post:

setTimeout(function () {
window.location.href = "http://edst.educ.ubc.ca/future/programs/diploma-adult-learning-and-education"; //will redirect to your blog page (an ex: blog.html)
}, 3000); //will call the function after 2 secs.

The default message to the user once they have paid through the online pay form is "Approved"

To add a custom message to this use the following javascript (post into Custom Javascript field on page with embedded form):

var d1 = document.getElementById('gforms_confirmation_message');
d1.insertAdjacentHTML('afterend', '<div id="two">Thank you for registering. You will be receiving a confirmation email with your registration details shortly.</div>');