window.open [英] window.open

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

问题描述



如果我打开一个php页面使用


... onclick = \" help = window.open('' help.php'',''帮助'',

''innerHeight = 400,innerWidth = 400,screenX = 555,屏幕Y = 250,依赖=是,bar =是'');

....


有没有办法将数据发送到调用页面(help.php)?东西

如$ _POST [....]如果我会使用HTML表单提交?

在mysql中设置cookie或存储数据并不是那么优雅的解决方案。


有人可以给我提示吗?


Lajos

解决方案

< blockquote> _POST [....]如果我要使用HTML表单提交?

在mysql中设置cookie或存储数据并不是那么优雅的解决方案。


有人可以给我提示吗?


Lajos


只需在help.php之后添加一个查询字符串:


... onclick = \" help = window.open(''help.php?a = 10& b = 20& c = 4 0'',''帮助'' ,


''innerHeight = 400,innerWidth = 400,screenX = 555,屏幕Y = 250,依赖=是,bar = Ye

s'' );

...


希望它有所帮助

亨利


" ; Lajos Kuljo <ク*** @ freemail.hu> $écritdansle message de

news:o0 ****************** @ nntpserver.swip.net ...

如果我用
打开一个php页面
... onclick = \" help = window.open(''help.php'',''帮助'',

''innerHeight = 400,innerWidth = 400,screenX = 555,屏幕Y = 250,依赖=是,bar = Ye

s''); ...

有没有办法将数据发送到调用页面(help.php)?如果我要使用HTML表单提交,那么


_POST [....]?
在mysql中设置cookie或存储数据并不是那么优雅解决方案。

有人可以给我提示吗?

Lajos




Hi,
if I opened a php-page using

... onclick=\"help=window.open(''help.php'', ''Help'',
''innerHeight=400,innerWidth=400,screenX=555,screen Y=250,dependent=Yes,bar=Yes'');
....

is there a way to send data to the invoked page (help.php)? Something
like $_POST[....] if I would use a HTML form-submit?
Setting cookies or store data in mysql are not so very elegant solutions.

Can somebody give me hint?

Lajos

解决方案

_POST[....] if I would use a HTML form-submit?
Setting cookies or store data in mysql are not so very elegant solutions.

Can somebody give me hint?

Lajos


Just add a query string after help.php:

... onclick=\"help=window.open(''help.php?a=10&b=20&c=4 0'', ''Help'',

''innerHeight=400,innerWidth=400,screenX=555,screen Y=250,dependent=Yes,bar=Ye
s'');
...

Hope it helps
Henri

"Lajos Kuljo" <ku***@freemail.hu> a écrit dans le message de
news:o0******************@nntpserver.swip.net...

Hi,
if I opened a php-page using

... onclick=\"help=window.open(''help.php'', ''Help'',
''innerHeight=400,innerWidth=400,screenX=555,screen Y=250,dependent=Yes,bar=Ye
s''); ...

is there a way to send data to the invoked page (help.php)? Something
like


_POST[....] if I would use a HTML form-submit?
Setting cookies or store data in mysql are not so very elegant solutions.

Can somebody give me hint?

Lajos




这篇关于window.open的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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