function openWindow(){
var Read= confirm("Are you ready?");
if(Read){
var openWin = prompt("http://www.imooc.com?");
if(openWin == 666){
window.open('http://www.imooc.com','_blank','width=400,height=500,menubar=no,toolbar=no')
}
}
};
var Read= confirm("Are you ready?");
if(Read){
var openWin = prompt("http://www.imooc.com?");
if(openWin == 666){
window.open('http://www.imooc.com','_blank','width=400,height=500,menubar=no,toolbar=no')
}
}
};
最新回答 / llo蛋蛋oll
<!DOCTYPE HTML><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>close()</title> <script type="text/javascript"> function txt(){ window.open('http://www.imooc.com','_...
2016-07-10
//定义"改变颜色"的函数
function one(){
var txt=document.getElementById("txt");
txt.style.color="red";
txt.style.backgroundColor="blue";
}
function one(){
var txt=document.getElementById("txt");
txt.style.color="red";
txt.style.backgroundColor="blue";
}
//定义"改变宽高"的函数
function two(){
var txt=document.getElementById("txt");
txt.style.width="300px";
txt.style.height="300px";
}
//定义"隐藏内容"的函数
function three(){
var txt=document.getElementById("txt");
txt.style.display="none";
}
function two(){
var txt=document.getElementById("txt");
txt.style.width="300px";
txt.style.height="300px";
}
//定义"隐藏内容"的函数
function three(){
var txt=document.getElementById("txt");
txt.style.display="none";
}
//定义"显示内容"的函数
function four(){
var txt=document.getElementById("txt");
txt.style.display="block";
}
//定义"取消设置"的函数
function deal(){
var a=confirm("是否取消设置");
if(a==true){
var as=document.getElementById("txt");
as.style.cssText="none";
}
else return;
}
function four(){
var txt=document.getElementById("txt");
txt.style.display="block";
}
//定义"取消设置"的函数
function deal(){
var a=confirm("是否取消设置");
if(a==true){
var as=document.getElementById("txt");
as.style.cssText="none";
}
else return;
}
<script type="text/javascript">
function hidetext()
{
document.getElementById("con").style.display = "none" ;
}
function showtext()
{
document.getElementById("con").style.display = "block";
}
</script>
function hidetext()
{
document.getElementById("con").style.display = "none" ;
}
function showtext()
{
document.getElementById("con").style.display = "block";
}
</script>
2016-07-10
<script type="text/javascript">
function hidetext()
{
document.getElementById("con").style.display = "none" ;
}
function showtext()
{
document.getElementById("con").style.display = "block";
}
</script>
function hidetext()
{
document.getElementById("con").style.display = "none" ;
}
function showtext()
{
document.getElementById("con").style.display = "block";
}
</script>
2016-07-10
最赞回答 / weibo_李大仁又遇到了程又青_036
这段代码本来应该依次输出 Hello world //<p>中文本 p标签原始内容:Hello World p标签修改内容;NEW text!但是因为后来 mycon.innerHTML="NEW text!";把<p>中文本改了所以浏览器显示出来的结果就是 ...
2016-07-10
求大神或同学点评!!!
function openWindow(){
var myclick;
myclick=confirm("yes or no");
if(myclick==ture){
prompt("enterURL:http://www.imooc.com/) ;
};
// 新窗口打开时弹出确认框
window.open("http://www.imooc.com/","_blank","width=400,height=500,menubar=no,sidebar=no");
}
function openWindow(){
var myclick;
myclick=confirm("yes or no");
if(myclick==ture){
prompt("enterURL:http://www.imooc.com/) ;
};
// 新窗口打开时弹出确认框
window.open("http://www.imooc.com/","_blank","width=400,height=500,menubar=no,sidebar=no");
}