打开一个没有工具栏的新窗口等 [英] Opening a New Window with no toolbars etc

查看:50
本文介绍了打开一个没有工具栏的新窗口等的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个页面,ASP脚本创建一个链接表


ie

1 = NextPage.asp?Item = 1

2 = NextPage.asp?项目= 2





我想做的是打开一个新窗口此链接没有任何

工具栏,地址栏,滚动条和标签。即使用于限制新窗口外观的

控件在新的asp页面中,我也会很高兴。


任何建议或指针都会很大赞赏。


谢谢,


Rob

解决方案

anon写于10 mei 2008 microsoft.public.inetserver.asp.general:


我有一个页面,其中ASP脚本创建一个链接表


ie

1 = NextPage.asp?Item = 1

2 = NextPage.asp?Item = 2





我想做的是打开一个带有此链接的新窗口,而不是任何工具栏,地址栏,滚动条和标签。如果用于限制新窗口外观的控件位于

新的asp页面中,我会很高兴




经典ASP,作为服务器端脚本,不知道

窗口的概念。

ASP在服务器端操作旁边,只准备发送给客户端的

的html流。


我甚至会很高兴

如果用于限制新窗口外观的控件位于

新的asp页面中。



同样,ASP不是一个页面,它是在服务器上执行的服务器端代码内容,并且永远不会离开服务器。通常它是从客户端调用

并带有.asp扩展名,但只有html [可能带有客户端代码],

被发送给客户端。


所以你问的是错误的NG。


尝试关于客户端脚本的NG,比如< news:comp.lang.javascript>


[甚至可能是你在询问ASP.NET。我们无处可知这些事情。这是一个经典的asp组。

Dotnet问题c /应该在

< microsoft.public.dotnet.framework.aspnet>]中查询

-

Evertjan。

荷兰。

(请将x''es更改为我的电子邮件地址中的点数)


"匿名" < an ** @ anon.comwrote in message

news:53 **************************** ****** @ microsof t.com ...


我有一个ASP脚本创建链接表的页面

ie

1 = NextPage.asp?Item = 1

2 = NextPage.asp?Item = 2





我想做的是打开一个带有此链接的新窗口,没有任何

工具栏,地址栏,滚动条和标签。即使用于限制新窗口外观的

控件在新的asp页面中,我也会很高兴。


任何建议或指针都会很大赞。



看看这段代码: -


< html>

< ; head>

< script type =" text / javascript">

function displayItem()

{

var url =" NextPage.asp?item =" + this.getAttribute(" itemID");

window.open(url," _blank"," toolbar = no,menubar = no,location = no,

scrollbars = no")

}

< / script>

< / head>

< body>

< div>< a href =" javascript :void(0)" itemID =" 1"

onclick =" displayItem.call(this)"> Item 1< / a>< / div>

< div> ;< a href =" javascript :void(0)" itemID =" 2"

onclick =" displayItem.call(this)"> Item 2< / a>< / div>

< /正文>

< / html>


要注意的关键是使用window.open方法。

-

安东尼琼斯 - MVP ASP / ASP.NET


凝视我的水晶球,我观察到anon < an ** @ anon.comwriting in

news:53 ***************************** ***** @ microsof t.com:


我有一个ASP脚本创建链接表的页面


ie

1 = NextPage.asp?Item = 1

2 = NextPage.asp?Item = 2





我想要做的是打开一个带有此链接的新窗口,而不是任何工具栏,地址栏,滚动条和标签。如果用于限制新窗口外观的控件位于

新的asp页面中,我会很高兴




非常感谢任何建议或指示。


谢谢,


Rob



这是关于这个组的主题,但是说了,停止想要那个。

让用户决定是否要打开一个新窗口。打开新的

窗口,特别是没有镀铬,打破了后退按钮,可能会让用户感到困惑。还有内存问题,尤其是内存很少的系统和使用拨号的系统。


-

Adrienne Boswell在家

Arbpen网站设计服务
http://www.cavalcade-of-coding.info

请回复群组,以便其他人分享


I have a page where the ASP script create a table of links

i.e.
1 = NextPage.asp?Item=1
2 = NextPage.asp?Item=2

etc

What I would like to do is open an new window with this link without any
toolbars, addressbars, scrollbars and tabs. I would be happy even if the
control to limit the appearance of the new window was in the new asp page.

Any suggestions or pointers would be greatly appreciated.

Thanks,

Rob

解决方案

anon wrote on 10 mei 2008 in microsoft.public.inetserver.asp.general:

I have a page where the ASP script create a table of links

i.e.
1 = NextPage.asp?Item=1
2 = NextPage.asp?Item=2

etc

What I would like to do is open an new window with this link without
any toolbars, addressbars, scrollbars and tabs. I would be happy even
if the control to limit the appearance of the new window was in the
new asp page.

Classic ASP, being serverside script, has no knowledge of the concept of a
window.
ASP, next to serverside manipulation, only prepares the html stream for
sending to the client.

I would be happy even
if the control to limit the appearance of the new window was in the
new asp page.

Again, ASP is not a page, it is serverside code content that is executed on
the server and never leaves the server. Often it is called from the client
with an .asp extention, but only the html [perhaps with clientside code],
is sent to the client.

So you are asking in the wrong NG.

Try a NG about clientside scripting, like <news:comp.lang.javascript>

[It could even be that you are asking about ASP.NET. We overhere do not
know about such things. This is a classic asp group.
Dotnet questions c/should be asked in
<microsoft.public.dotnet.framework.aspnet>]
--
Evertjan.
The Netherlands.
(Please change the x''es to dots in my emailaddress)


"anon" <an**@anon.comwrote in message
news:53**********************************@microsof t.com...

I have a page where the ASP script create a table of links

i.e.
1 = NextPage.asp?Item=1
2 = NextPage.asp?Item=2

etc

What I would like to do is open an new window with this link without any
toolbars, addressbars, scrollbars and tabs. I would be happy even if the
control to limit the appearance of the new window was in the new asp page.

Any suggestions or pointers would be greatly appreciated.

Take look at this code:-

<html>
<head>
<script type="text/javascript">
function displayItem()
{
var url = "NextPage.asp?item=" + this.getAttribute("itemID");
window.open(url, "_blank", "toolbar=no, menubar=no, location=no,
scrollbars=no")
}
</script>
</head>
<body>
<div><a href="javascript:void(0)" itemID="1"
onclick="displayItem.call(this)">Item 1</a></div>
<div><a href="javascript:void(0)" itemID="2"
onclick="displayItem.call(this)">Item 2</a></div>
</body>
</html>

The key thing to note is the use of the window.open method.
--
Anthony Jones - MVP ASP/ASP.NET


Gazing into my crystal ball I observed "anon" <an**@anon.comwriting in
news:53**********************************@microsof t.com:

I have a page where the ASP script create a table of links

i.e.
1 = NextPage.asp?Item=1
2 = NextPage.asp?Item=2

etc

What I would like to do is open an new window with this link without
any toolbars, addressbars, scrollbars and tabs. I would be happy even
if the control to limit the appearance of the new window was in the
new asp page.

Any suggestions or pointers would be greatly appreciated.

Thanks,

Rob

This is off topic for this group, but with that said, stop wanting that.
Let the user decide if they want to open a new window. Opening new
windows, especially without chrome, breaks the back button and can be
confusing to the user. There is also the issue of memory, especially on
systems with little memory, and systems that are using dial-up.

--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share


这篇关于打开一个没有工具栏的新窗口等的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆