Guest User

Untitled

a guest
May 23rd, 2015
245
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. snippet1 :
  2.  
  3. var logbox = document.getElementById('login');
  4. var regbox = document.getElementById('register');
  5. logbox.onclick = switchScreen('login');
  6. regbox.onclick = switchScreen('register');
  7.  
  8. + code of canceling hyperlink redirection
  9.  
  10. snippet2 :
  11.  
  12. <a href="javascript:void(0);" id=login onclick="switchScreen('Login')">Login</a>
RAW Paste Data