当li(HTML)单击然后打开新的窗体窗体。 [英] When li (HTML) click then open new windows Form.

查看:73
本文介绍了当li(HTML)单击然后打开新的窗体窗体。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





当我点击li(行)然后从新标签打开新的windoes。



例如:

Hi,

When I click li (line) then open new windoes form new tab.

Eample :

<li id ="mcsreport"> <a href="#"> Report </a>  </li>







$(document).ready(function () {
            $('#mcsreport').click(function () {

                if ($('#txtSessionValue').text.toString() == 0) {
                    window.open("../../Security/FRM/FrmLogin.aspx", "_self");

                }
                else {
                    window.open("../../Report/FrmReportMdiMain.aspx", "_self");
                    
                }
            });
        });





此代码无效。请帮忙......



this code is not work properly. please help...

推荐答案

(document).ready(function(){
(document).ready(function () {


' #mcsreport')。click(function(){

if
('#mcsreport').click(function () { if (


' #txtSessionValue')。text.toString()== 0 ){
window.open( ../../ Security / FRM / FrmLogin.aspx _ self);

}
else {
window.open( ../../ Report / FrmReportMdiMain.aspx _ self);

}
});
});
('#txtSessionValue').text.toString() == 0) { window.open("../../Security/FRM/FrmLogin.aspx", "_self"); } else { window.open("../../Report/FrmReportMdiMain.aspx", "_self"); } }); });





此代码无效。请帮忙......



this code is not work properly. please help...


这篇关于当li(HTML)单击然后打开新的窗体窗体。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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