Well, I am not sure why you don’t just use anchor tags but if you must here is the solution:
1. add an href attribute and set it to wherever you want the button to goto…
2. add a “target” attribute, if you want it to open in the same page set it to “_self” if you want it to open in a new window set target to “_blank”
Le Modified Buttons:
var url = $(this).attr('href'); // Get the URL to travel to
var target = $(this).attr('target'); //Are we opening in a new window or the current window?
window.open(url, target); //Open the window
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.
*May or may not contain any actual "CSS" or "Tricks".