<html>
<head>
<script src="textinput_helper.js"></script>
<script>
window.onload = function() {
var ele = document.getElementById('text_id');
ele.onfocus = function(e) {
document.getElementById('password_id').focus();
};
};
</script>
</head>
<body>
<input type="text" id="text_id">
<input type="password" id="password_id">
</body>
</html>