怎样用JavaScript实现在页面按一个按钮连接到一个网页?

来源:百度知道 编辑:UC知道 时间:2024/07/03 03:40:26
就空的页面 按一个指定按钮就能 连接到一个指定的网页。

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title> new document </title>
<meta name="generator" content="editplus" />
<meta name="author" content="" />
<meta name="keywords" content="" />
<meta name="description" content="" />
</head>
<script>
function openURL()
{
window.open("b.html","","resizable=false,top=120,left=200,width=500,height=420,scrollbars=yes");
}
</script>