So I'm trying to get a url I have stored in the clipboard to render in my iframe via url.
Not sure what to make of this code.
<iframe id="showskill" scrolling="yes" height="100%" width ="100%" src=""+ ReturnURL()></iframe>
<script>
function ReturnURL() {
var el = document.createElement('textarea');
document.body.appendChild(el);
el.focus();
document.execCommand('paste');
var value = el.value;
document.body.removeChild(el)
return value;
}
console.log(getClipboard());
</script>
Suggestions welcome.
- Ry3yr
Edit: This looks like a step in the right direction ? How to use javascript variable in iframe src Edit2: New code, same fate...