打开一个新窗口 [英] opening a new window

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

问题描述

Heya all,我想知道在使用javascript打开新窗口时如何传递变量。

我有一个文本字段和一个按钮 - 通过更改按钮的属性,我可以让它打开一个新窗口 - 但我想知道我如何传递文本字段值,所以它出现在我的弹出窗口中


继承我的代码 - 我使用asp

Heya all, I want to know how to pass a variable across when opening a new window using javascript.
Ive got a text field and a button-and by changing properties of the button i can get it to open up a new window- however i want to know how i can pass the text field value so it appears in my pop-up window

Heres my code- im using asp


展开 | 选择 | Wrap | 行号

推荐答案

为您的文本框添加一个id,然后在新窗口中使用url传递它:
Add an id for your text box, then pass it with the url in the new window:
展开 | 选择 | Wrap | 行号


我看过这个 - 但我又不知道。你能救我吗?是在asp或javascript中获取函数???
Ive looked into this- but again i dont know. could you help me out?? Is is get function in asp or javascript???


我上面描述的方式,你应该知道ASP来处理变量。 AFAIK,对于GET变量,您需要使用以下内容:
The way I have described above, you should know ASP to deal with the variable. AFAIK, for a GET variable, you need to use the following:
展开 | 选择 | Wrap | 行号


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

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