Winand

Cisco CCNA course quiz access (if window.open is blocked)

Oct 13th, 2012
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var a = document.createElement("a");
  2. a.appendChild(document.createTextNode("Open Quiz"));
  3. a.href = ref + "?path=" + path;
  4. a.target = "_blank"
  5. document.getElementsByTagName("body")[0].appendChild(a);
  6. window.scrollBy(0,50); //make link visible
  7. //var ptwin = window.open(ref+"?path="+path, "quizwin", "status=0,toolbar=0,location=0,menubar=0,directories=0,scrollbars=0,resizable=1,width="+w+",height="+h);
Advertisement
Add Comment
Please, Sign In to add comment