Skip to content

Instantly share code, notes, and snippets.

Created Dec 28, 2017
Embed
What would you like to do?
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
</head>
<body>
<script id="jsbin-javascript">
const search = (location.search.match(/q=([^&]+)/) || [null, "1"])[1];
const iframe = document.createElement('iframe');
iframe.src = "http://ec2-23-23-119-219.compute-1.amazonaws.com/index.php/catalogsearch/result/?q="+search;
document.querySelector('body').appendChild(iframe);
</script>
<script id="jsbin-source-javascript" type="text/javascript">const search = (location.search.match(/q=([^&]+)/) || [null, "1"])[1];
const iframe = document.createElement('iframe');
iframe.src = "http://ec2-23-23-119-219.compute-1.amazonaws.com/index.php/catalogsearch/result/?q="+search;
document.querySelector('body').appendChild(iframe);</script></body>
</html>
const search = (location.search.match(/q=([^&]+)/) || [null, "1"])[1];
const iframe = document.createElement('iframe');
iframe.src = "http://ec2-23-23-119-219.compute-1.amazonaws.com/index.php/catalogsearch/result/?q="+search;
document.querySelector('body').appendChild(iframe);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment