<script type="text/javascript">
function Wopen()
{
window.open(
'http://www.taobao.com',
'_blank',
'top=100px,left=100px,width=100px,height=100px,menubar=yes,scrollbars=yes,toolbar=yes,status=yes'
);
</script>
function Wopen()
{
window.open(
'http://www.taobao.com',
'_blank',
'top=100px,left=100px,width=100px,height=100px,menubar=yes,scrollbars=yes,toolbar=yes,status=yes'
);
</script>
2015-06-11
已采纳回答 / 小三丽
<script type="text/javascript"> var p1=document.getElementById("txt"); //定义"改变颜色"的函数 function dcolor(){ p1.style.color="#f0f"; p1.style.background="#0ff"; }//定义"改变宽高"的函数 function modifyWH(){ p1.style.width="400px"...
2015-06-11
score =prompt("button","点击我,对成绩做评估"); 要加引号的
2015-06-10
e...空间以前有个整蛊人的软件,点进去就显示各种“你是SB~”之类,还必须点确定,不然就离开不了当前页面,真是各种无语。
这个应该就是用alert做的吧?
这个应该就是用alert做的吧?
2015-06-10
这门课不知道有没有像我一样的初中同学呢?应该有蛮多吧。 这门课想起了数学的函数,数学中,可以把数字直接代入相符的函数,省去许多的运算过程。 与这个,也有异曲同工之妙。 或者说,是一样东西?还是有点不一样的吧......
2015-06-10
alert 警告或提示,注意需要做成一个按键的提示的话,就需要把警告alert写在一个函数function下。
<html>
<head>
<meta http-equiv="Content-Type" type="text/html;charset=utf-8">
<title>alert警告<title>
<script type="text/javascript">
function contxt(){
var greeting="Hello!";
alert(greedting+"How do you do?");
</script>
</head>
<html>
<head>
<meta http-equiv="Content-Type" type="text/html;charset=utf-8">
<title>alert警告<title>
<script type="text/javascript">
function contxt(){
var greeting="Hello!";
alert(greedting+"How do you do?");
</script>
</head>
2015-06-10