HTML-如何将onclick设置为AutoClick

时间:2011-02-18 14:05:47

标签: html

哎, 我正在尝试设置一个html文件,以便在登录按钮上自动单击。 我该怎么做。 我试试:onclick =“window.open(this.href,'_ self')”。它不起作用。

1 个答案:

答案 0 :(得分:0)

如果您只想在页面加载时触发点击,则可以使用:

onLoad="window.open(this.href,'_self')"