新手javascript动态创建标签页问题求助
来源:百度知道 编辑:UC知道 时间:2024/06/08 13:16:43
如何实现像浏览器那样,动态的创建标签页?新手求助,最好能给出代码,不胜感激!
<html>
<head>
<script>
function test(){
window.open("http://www.baidu.com");
}
</script>
</head>
<body>
<input type="button" value="onclick" onclick="test()">
</body>
</html>
-------------------------------------------------------
<html>
<head>
<script>
function test(){
document.body.innerHTML = "<table width='300px' height='300px' border='1'><tr><td> </td><td> </td><td> </td></tr></table>";
}
</script>
</head>
<body>
<input type="butt