HTML =
<a onclick="return popitup('https://courses.students.ubc.ca/cs/main?pname=subjarea&tname=subjareas&req=1&dept=ADHE')" href="https://courses.students.ubc.ca/cs/main?pname=subjarea&tname=subjareas&req=1&dept=ADHE"></a>
......................................................................................................................................
JS =
function popitup(url) {
newwindow=window.open(url,'name','height=500,width=750');
if (window.focus) {newwindow.focus()}
return false;
}
To add a link that links into a tab you need to add this piece of javascript to the page or post under Custom Javascript (if you do not see a custom javascript box on your page editor go to Screen Options and make sure custom javascript is checked there)
jQuery(".do-tab").click(function() {
var href = jQuery(this).attr('href');
jQuery('a[href="'+href+'"]').not('.do-tab').trigger("click");
});
Then when you are creating the link add class="do-tab" to the <a href> tag like this:
<a href="#Apply-5" class="do-tab">some text</a>
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>');