如何在新窗口中打开HTML页面

如何在新窗口中打开HTML页面

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

问题描述

我在Dir HTMLReports中有一个HTML页面...我想在用户Click in New Window中打开HTML页面.我已按下一个按钮,然后单击该按钮,更新面板"触发了回发..."按钮上的单击事件,我已编写了此代码..

Hi I have a HTML Pages in Dir HTMLReports... I want to open HTML pages on user Click in New Window. I have taken one Button and on click of that button Update Pannel Triggers a PostBack... An on button click event I have written this Code..

httpContext.Current.response.Write("<Script> window.open('HtmlReports/HtmlRpt.html','Rpt_Title') </Script>")
httpContext.Current.response.end()



我的输出是这样的...

显示与HtmlRpt.html一起打开的新窗口
但是
我当前的页面上没有显示我的按钮,什么都没显示

如何克服这个问题?请给我一些建议



My output is Something Like this...

A New Window Get Open Along With HtmlRpt.html is Displayed
but
My Current Page In Which i Have Button That Becomes Blank Nothing is Displayed

How to overcome this problem? Please give me some suggestions

推荐答案

<a href="Enter ur address here" target="_blank">Enter</a>



选择"Enter"后,将重定向到新窗口中的目标页面.



When you have select the ''Enter'', you will be redirect to the targeted page in new window.




这篇关于如何在新窗口中打开HTML页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-31 15:20