Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- document.location.href = "...login page...";
- var userInput = confirm('Session timed out, nt login again?');
- document.location.href = (userInput === true ? 'loginpage' : 'index/main.html');
- var userInput = confirm('Session timed out, nt login again?');
- document.location.href = (userInput ? 'loginpage' : 'HOME');
- if (userInput)
- {
- document.getElementById('loginNameInputId').focus();//fill in actual id, of course
- }
- else
- {
- window.location.href = 'anyPage or url';
- }
- if (userInput)
- {
- document.getElementById('loginNameInputId').value = varContainingUserName;
- document.getElementById('passwordInput').focus();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement