I'm using the script below to open a random page on clicking the relevant image but want it to open a NEW window instead of changing the current one. Any ideas? Do I change the html or the javascript? If so, how?
1. SCRIPT:
<script type = "text/javascript">
<!--
function random_all(){
var myrandom=Math.round(Math.random()*(document.links.length-1))
window.location=document.links[myrandom].href
};//--></script>
2. HTML:
<a href="#" onMouseOver="MM_swapImage('Image57','','images/splash/images/splash_anim.gif',1)" onMouseOut="MM_swapImgRestore()"><img src="images/splash/images/splash_09a.jpg" name="Image57" width="422" height="261" border="0" onclick = "random_all()">
1. SCRIPT:
<script type = "text/javascript">
<!--
function random_all(){
var myrandom=Math.round(Math.random()*(document.links.length-1))
window.location=document.links[myrandom].href
};//--></script>
2. HTML:
<a href="#" onMouseOver="MM_swapImage('Image57','','images/splash/images/splash_anim.gif',1)" onMouseOut="MM_swapImgRestore()"><img src="images/splash/images/splash_09a.jpg" name="Image57" width="422" height="261" border="0" onclick = "random_all()">