JS或者Jquery打开一个新页面,怎么打开??

2025-03-24 17:44:31
推荐回答(5个)
回答1:

可以先把子页面设置display:none;就是隐藏的意思,因为显示的时候是遮罩层的那一种,所以还要设置z-index:1。当点击父页面的按钮时弹出子页面,用show()这个jquery函数就行了。

回答2:

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')

回答3:

那你可以使用的是写一个按钮点击事件的。在方法里面写window.location.bref="网址";

回答4:

window 对象

window.open(url,name,feature,replace);//打开新窗口

回答5:

Window.location.href="*****"