I don't how it posible can you Help me?
- How to select auto form name?
- How to select auto input id or name?
- How to submit and reset on my page in my iframe?
- <iframe id="myiframe" width="400" height="300" src="http://localhost/wordpress/wp-login.php?action=register"></iframe>
- <button id="btnTest">Fill the form</button> <button type="submit" id="submit">Submit</button>
- <button type="reset" id="reset">Reset</button>
- <script>
- function load() {
- var btn = document.getElementById('btnTest');
- btn.onclick = function(){
- var ifrm = document.getElementById('myiframe');
- ifrm.contentWindow.document.forms['registerform'].user_login.value = 'yourname';
- ifrm.contentWindow.document.forms['registerform'].user_email.value = 'examplae@email.doamin';
- };
- }
- window.onload = load;
- </script>