I am trying to do a very simple task here, I would like to be able to click a button on a page and have it take me to another page.(我想在这里做一个非常简单的任务,我希望能够点击页面上的一个按钮,让它带我到另一个页面。)
I have tried window.location.href, and a bunch of other things and it does nothing.(我已经尝试过window.location.href,以及其他一些东西,它什么也没做。) I have tried different platforms and different browsers, all with the same result.(我尝试过不同的平台和不同的浏览器,都有相同的结果。)
I know that it can call a function but I just cannot get the new page to load.(我知道它可以调用一个函数,但我只是无法加载新页面。)
Also this is all in my local file system and both pages live at the same level (but I have also tried to load an external page like www.apple.com).(此外,这一切都在我的本地文件系统中,并且两个页面都处于同一级别(但我也尝试加载外部页面,如www.apple.com)。)
Any thoughts?(有什么想法吗?)
Thanks Patrick(谢谢Patrick)
ask by Patrick translate from so
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…