如何预先点击按钮? [英] How do I to make a button pre clicked?

查看:84
本文介绍了如何预先点击按钮?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的身体onload,也没有加载我在其他页面加载我的功能的第二页。所以,

我需要制作一个预加载页面的按钮。有可能吗?



我尝试过:



< body onLoad =loadSecondPage()> 
< script type =text / javascript>

window.onload = loadSecondPage();

< / script>
< input type =buttononclick =LoadSecondPage(); value =>
<! -

忽略..
< input type =button< a href =index.htmlvalue =Voltar>

< input type =buttononclick =location.href ='index.html'; value =Voltar/>





- >

解决方案

< blockquote>只需设置一个按钮重定向到你想去的页面。

不知道你为什么要预加载你的页面,但IIS或Appache可以预加载你的页面。你不必担心这个。



iis:预加载设置



如果页面上有什么样的原因比解决了这个问题。


My body onload, does not load my second page that I load in my function in other page too. So,
I need to make a button that is pre loading page . It´s possible?

What I have tried:

 <body onLoad="loadSecondPage()">
 <script type="text/javascript">
     
  window.onload = loadSecondPage();

 </script>    
            <input type="button" onclick="LoadSecondPage();" value="   ">
<!--

ignore..
            <input type="button" <a href="index.html" value="Voltar">

<input type="button" onclick="location.href='index.html';" value="Voltar"/>



-->

解决方案

Just set a button redirect to the page you want to go.
Don't know to reason why you would pre-load your page but IIS or Appache can pre-load you page. You don't have to worry about that.

iis: pre load settings

If the page is on what kinda reason slow than fix that problem.


这篇关于如何预先点击按钮?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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