This did the trick, thanks James.
On Mar 4, 6:23 pm, James wrote:
> Another option is to use the live() function.:
>
> $('a[rel="lesson"]').live('click', function() {
> window.open(this.href, "_blank", "channelmode=0, directories=0,
> fullscreen=0, height=820, left=0, location=0, menubar=0, resi
Another option is to use the live() function.:
$('a[rel="lesson"]').live('click', function() {
window.open(this.href, "_blank", "channelmode=0, directories=0,
fullscreen=0, height=820, left=0, location=0, menubar=0, resizeable=1,
scrollbars=0, status=1, titlebar=1, toolbar=0, top=0, width=1044");
Everytime you're calling that function, you're adding an addition
click event to it. One option is to unbind any existing onclick events
and then re-bind it.:
$('a[rel="lesson"]').unbind('click').click(...)
On Mar 4, 5:42 am, inertiahz wrote:
> Hi there,
>
> Just getting started with javascript
3 matches
Mail list logo