一、javascript通过列表框控制页面跳转
<script>
function jump(selectname){
if(document.all(selectname).value != '0')
{
if(type=="a")
window.open("index.html?select="+document.all(selectname).value,"_blank","");
else if (type=="b")
window.open("index1.html?select="+document.all(selectname).value,"_blank","");
else window.open("index.html2?select="+document.all(selectname).value,"_blank","");
document.all(selectname).value=0;
}
}
</script>
<script>
function jump(){
if(document.all("select").value != '0')
{
eval('parent.location("index.html?para='+document.all(“select“).value+“')');
}
}
</script>
<script>
function jump(selectname){
if(document.all(selectname).value != '0')
{
if(type=="a")
window.open("index.html?select="+document.all(selectname).value,"_blank","");
else if (type=="b")
window.open("index1.html?select="+document.all(selectname).value,"_blank","");
else window.open("index.html2?select="+document.all(selectname).value,"_blank","");
document.all(selectname).value=0;
}
}
</script>
<script>
function jump(){
if(document.all("select").value != '0')
{
eval('parent.location("index.html?para='+document.all(“select“).value+“')');
}
}
</script>