Send to a Friend

Haroot's avatar

A button on my site won't left-click (Javascript)

Asked by Haroot (2123points) February 2nd, 2011

So we have a school website for the arc. department of my school. The site was made with dreamweaver and contains a 4×4 grid. A navigation bar on the left with buttons will take you the different squares on the grid. Now we also have a number 17 button. This button is meant to open a new window to pdf (right now we just have it going to google.)

Now the problem is when I left-click this button, nothing happens. On the other hand if I right-click than open, ctrl-left click or right-click to open in a new tab.

Now if I make any changes to the buttons code (like add a height and width to the new window that is suppose to open,) it will work, but the rest of the navigation bar that moves you from button to button stops working.

Here’s what the piece of code looks like for the the #16 and #17:

});
$(’#re2li-16’).click(function() {
$paneTarget.stop().scrollTo( ‘li:eq(15)’, 1000);
});
$(’#re2li-17’).click(function() {
onclick=“window.open (‘http://www.google.com’)”;
});

Any ideas?

Using Fluther

or

Using Email

Separate multiple emails with commas.
We’ll only use these emails for this message.