Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

html open html in new tab as plain text

document.querySelector("#username").addEventListener('click', function() {
    setTimeout(function() {
		let username = document.querySelector('#username').value;
        window.open("https://www.github.com/" + username, "_blank");
    }, 2000);
}
Source by theanubhav.com #
 
PREVIOUS NEXT
Tagged: #html #open #html #tab #plain #text
ADD COMMENT
Topic
Name
5+1 =