Embed Experiments

On this page

Text to Clipboard

The code below was taken from https://www.w3schools.com/howto/tryit.asp?filename=tryhow_js_copy_clipboard and was embedded here using the Embed Code tool.

<!DOCTYPE html>
<p>Click on the button to copy the text from the text field. Try to paste the text (e.g. ctrl+v) afterwards in a different window, to see the effect.</p>
<input type="text" value="Hello World" id="myInput">
<button onclick="myFunction()">Copy text</button>
function myFunction() {
var copyText = document.getElementById("myInput");
copyText.setSelectionRange(0, 99999)
alert("Copied the text: " + copyText.value);


Jmol insertion into a web page

see http://wiki.jmol.org/index.php/Jmol_PHP

The sample applet from the wiki page linked to above was embedded here using the Embed Code tool.

Note that in order to make it work it was necessary to change http:// to https://

<script type="text/javascript"