components
This commit is contained in:
parent
304d578b54
commit
6fb4aabcba
344 changed files with 669 additions and 406 deletions
|
@ -0,0 +1,25 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<form id="form">
|
||||
<input type="text" placeholder="Enter message" name="message">
|
||||
<input type="submit" value="Click to send">
|
||||
</form>
|
||||
|
||||
<iframe src="iframe.html" id="iframe" style="display:block;height:60px"></iframe>
|
||||
|
||||
<script>
|
||||
form.onsubmit = function() {
|
||||
iframe.contentWindow.postMessage(this.message.value, '*');
|
||||
return false;
|
||||
};
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue