on click java script redirect to another page
<p>how to redirect the cube image to another link after clicking the cube image
now in js it redirects to google.com but it opens in another window
but i wanted it to display in the same window</p>

<pre><code>&lt;div class="row"&gt;
                &lt;div class="span10"&gt;
                    &lt;div class="melonhtml5_gallery"&gt;
                        **&lt;div onclick="window.open('http://www.google.com', '_blank');" data-caption="Fans" data-image="http://www.defie.co/designerImages/thumbnails/inventory.png"&gt;&lt;/div&gt;**
                        &lt;div data-caption="Paul Scholes" data-image="http://www.defie.co/designerImages/thumbnails/search.png"&gt;&lt;/div&gt;
                        &lt;div data-caption="Wayne Rooney" data-image="http://www.defie.co/designerImages/thumbnails/yourFile.png"&gt;&lt;/div&gt;
                        &lt;div data-caption="Sir Alex Ferguson" data-image="http://www.defie.co/designerImages/thumbnails/shareFiles.png"&gt;&lt;/div&gt;
                        &lt;div data-caption="Champ" data-image="http://www.defie.co/designerImages/thumbnails/custFile.png"&gt;&lt;/div&gt;
                        &lt;div data-caption="Group" data-image="http://www.defie.co/designerImages/thumbnails/custQuote.png"&gt;&lt;/div&gt;
                        &lt;div data-caption="Ryan Giggs" data-image="http://www.defie.co/designerImages/thumbnails/saleOrders.png"&gt;&lt;/div&gt;
                        &lt;div data-caption="David Beckham" data-image="http://www.defie.co/designerImages/thumbnails/custInvoice.png"&gt;&lt;/div&gt;
                        &lt;div data-caption="Champ" data-image="http://www.defie.co/designerImages/thumbnails/vendorProfile.png"&gt;&lt;/div&gt;
                        &lt;div data-caption="Group" data-image="http://www.defie.co/designerImages/thumbnails/vendorQuote.png"&gt;&lt;/div&gt;
                        &lt;div data-caption="Ryan Giggs" data-image="http://www.defie.co/designerImages/thumbnails/buyOrders.png"&gt;&lt;/div&gt;
                        &lt;div data-caption="David Beckham" data-image="http://www.defie.co/designerImages/thumbnails/vendorInvoice.png"&gt;&lt;/div&gt;
                        &lt;div data-caption="Champ" data-image="http://www.defie.co/designerImages/thumbnails/accountsReceivable.png"&gt;&lt;/div&gt;
                        &lt;div data-caption="Group" data-image="http://www.defie.co/designerImages/thumbnails/customerRMA.png"&gt;&lt;/div&gt;
                        &lt;div data-caption="Ryan Giggs" data-image="http://www.defie.co/designerImages/thumbnails/production.png"&gt;&lt;/div&gt;
                        &lt;div data-caption="David Beckham" data-image="http://www.defie.co/designerImages/thumbnails/CRM.png"&gt;&lt;/div&gt;
                    &lt;/div&gt;
                &lt;/div&gt;
</code></pre>
