how to redirect to another page in same window in javascript
<p>i am creating an application in which i am using image  transitions slideshow. in image slideshow i used hyperlink to go another page. but page open in new window. i want page open in same window.</p>

<pre><code>flashyslideshow.prototype.getSlideHTML=function (index) {
    var slideHTML= (this.imagearray[index][1])?'&lt;a href=  "' + this.imagearray[index][1]+'" target = "'+this.imagearray[index][2]+ "_self" '"&gt;\n' : ''; //hyperlink slide?
    slideHTML+='&lt;img src="'+this.imagearray[index][0]+'" height="550" width="100%" &gt;';
    slideHTML+=(this.imagearray[index][1])? '&lt;/a&gt;&lt;br /&gt;' : '&lt;br /&gt;';
    slideHTML+=(this.imagearray[index][3])? '&lt;font face="bookman old style" color="blue" size="3"&gt;' + this.imagearray[index][3] : ''; //text description?
    return slideHTML; //return HTML for the slide at the specified index
}
</code></pre>
