Created
August 15, 2019 20:39
-
-
Save RomanManz/6dca1708341ae6a14cdb3d7c33c2014f to your computer and use it in GitHub Desktop.
demo javascript code to open a new text window/tab
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<script type="text/javascript"> | |
function showdata() { | |
window.open('data:text/plain;charset=US-ASCII,Hello, Window!', '_blank'); | |
} | |
</script> | |
</head> | |
<body> | |
<a href="javascript:showdata()">click me</a> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment