Home > Backend Development > PHP Tutorial > JS控制不同Frame有关问题

JS控制不同Frame有关问题

WBOY
Release: 2016-06-13 13:45:14
Original
951 people have browsed it

JS控制不同Frame问题
各位大侠,有一问题请教
网页上有两个Frame, 一个为main,一个为left, 现在在main中有一个输入框,我输入代码按回车时候在left frame中会显示相应的内容,我现在问题是我想在main的输入框中捕获到某个按键譬如←键时,我的光标自动跳到left frame的输入框中输入金额。
其它的应经解决,我现在就是搞不懂如何在js里面操作这个光标焦点到left frame的输入框中。
多谢

------解决方案--------------------
类似下面,请用根据情况替换leftFrame,yourText.
prarent.leftFrame.yourText.fouce();

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template