可以先把子页面设置display:none;就是隐藏的意思,因为显示的时候是遮罩层的那一种,所以还要设置z-index:1。当点击父页面的按钮时弹出子页面,用show()这个jquery函数就行了。
onclick="window.open('index.cfm','Derek','height=100,width=100,status=yes,toolbar=yes,menubar=no,location=no');void(0);">aaaaaaaaaaaaa
可以把onclick事件写一个js方法。js内容还是"window.open('index.cfm','Derek','height=100,width=100,status=yes,toolbar=yes,menubar=no,location=no')
那你可以使用的是写一个按钮点击事件的。在方法里面写window.location.bref="网址";
window 对象
window.open(url,name,feature,replace);//打开新窗口
Window.location.href="*****"