Window Open&关 [英] Window Open & Close

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

问题描述

大家好,

我必须设计一个网页,其中显示特定文件夹中的所有文件(pdf)。点击特定项目,该文件应在新窗口中打开。

父窗口上有链接,显示新打开的窗口仍然打开或关闭。

我通过< a href =" JavaScript实现了第一部分...... " ..> txt< / a>

并且能够在新窗口中查看该文件。

但是第二部分,我无法实现。

我尝试使用此代码

Hi All,
I have to design a web page in which all file(pdf) present in particular folder is visible.Onclicking particular Item,the file should open in new window.
There is link on parent window which show wether the newly open window is still open or closed.
I have implemented the first part through <a href="JavaScript..."..>txt</a>
and able to view the file in new window.
But the second part ,I am not able to implement.
I try with this code

展开 | 选择 | Wrap | 行号

推荐答案

嗨...


以下检查应该适用于你的功能:

hi ...

the following check should work for your function:

展开 | 选择 | Wrap | 行号




通过使用上面的函数总是其他部分是执行。

问候,

Manohar

Hi ,
by using above function always else part is geting executed.
Regards,
Manohar


hi ...


以下检查应该适用于您的功能:

hi ...

the following check should work for your function:

展开 | 选择 | Wrap | 行号


然后调整调用并使用onclick而不是href:


[HTML]< a href ="#" onclick =" TestPopUp(''your_href'');"> txt< / a> [/ HTML]

亲切的问候
then adapt the call too and use the onclick instead of href:

[HTML]<a href="#" onclick="TestPopUp(''your_href'');">txt</a>[/HTML]
kind regards


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

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