How can i re-write this function without using jQuery?, i.e., plain old javascript?
It's an input type="button" (not submit) with an id of 'view-portfolio'. It could be a
hyperlink instead of course, but it's a grouped together with some other form buttons and it needs to like identical.
the jQ is simply this -
i'm familiar with getElementById['view-portfolio'], but get stuck at that point.PHP Code:$(document).ready(function() {
$('#view-portfolio').click(function() { window.location='newpage.php' });
});
thanks for any help on this..


Reply With Quote
Bookmarks