我想在不刷新和更改jquery当前模式(全屏模式)的情况下打开一个页面,在我的页面中,默认情况下全屏是打开的,我想在不退出全屏和刷新的情况下将用户重定向到另一个页面。
我使用history.pushState(),但它对我不起作用。这是我的一小段代码
<a onclick="history.pushState({},'Another page','./anotherpage?t=abc');" class="btn waves-effect waves-light orange" style="margin-top: 45px; width: 98%;">Next</a>希望你能理解,请帮我解决问题。
发布于 2020-07-09 14:59:21
这应该是可行的:
<a onclick="openFullscreen()" class="btn waves-effect waves-light orange" style="margin-top: 45px; width: 98%;">Next</a>
<script>
function openFullscreen() {
var win = window.open('https://example.com','full','dependent=yes, fullscreen=yes');
win.focus();
}
</script>https://stackoverflow.com/questions/62808900
复制相似问题