登录页面光标没有指向登录框,我该怎么办? [英] Login page cursor not pointing to login box, how can I do that?

查看:103
本文介绍了登录页面光标没有指向登录框,我该怎么办?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我正在使用的rlogin页面的Java脚本,但是光标没有指向登录框,任何想法如何在这个页面加载时将光标指向登录框?这里管理员登录控制页面和用户登录进入状态页面,如果我给出直接路径而没有goto登录,两个页面都显示,如果用户没有登录,我可以添加一个检查,然后重定向到两个控件的登录页面。 htm和status.htm,让我知道。提前谢谢。


This is the Java script I am using fo rlogin page, but cursor not pointing to login box, any idea how can I point cursor to login box when this page loaded?. here admin login take to control page and user login take to status page, if I give direct path without goto login, both pages display, can I add a check if user didn''t login, then redirect to login page for both control.htm and status.htm, let me know. thanks in advance.



展开 | 选择 | Wrap | 行号

推荐答案

给你的输入节点是一个id,然后在body的onload中调用一个函数来聚焦节点:

give your input node an id and then call a function in the body''s onload that will focus the node:

展开 | 选择 | Wrap | 行号


非常感谢,谢谢。


我添加了javascript的函数部分,然后我在body中添加了函数调用,但我仍然看不到光标。
I added the function part of javascript, then I added function call in body, but still I cannot see cursor.


这篇关于登录页面光标没有指向登录框,我该怎么办?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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