Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- snippet1 :
- var logbox = document.getElementById('login');
- var regbox = document.getElementById('register');
- logbox.onclick = switchScreen('login');
- regbox.onclick = switchScreen('register');
- + code of canceling hyperlink redirection
- snippet2 :
- <a href="javascript:void(0);" id=login onclick="switchScreen('Login')">Login</a>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement