后退按钮在Wpf浏览器应用程序中禁用 [英] Back button Disable in Wpf Browser application

查看:83
本文介绍了后退按钮在Wpf浏览器应用程序中禁用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我有WPF浏览器应用程序主页.在此,如果可能的话,我想禁用后退按钮.任何人都可以帮助我.

谢谢,
Narasima

Hi to All,

I have WPF Browser application Main page .In this i want disable the back button if it is possible.Please any can help me regarding this.

Advanced Thanks,
Narasima

推荐答案

if(window.history.forward(1)!=-1)
window.history.forward(1);
if(window.history.forward(1)!=-1)
window.history.forward(1);


这篇关于后退按钮在Wpf浏览器应用程序中禁用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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