Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8" />
- <script src="jquery-1.9.1.js"></script>
- </head>
- <body>
- popup
- <script>
- (function(){
- var curRow = window.top.opener.$("#ldiv");
- var curRowNotOk = $(window.top.opener.document.getElementById("ldiv")); // This way the parameterer forceRefresh is not passed in the on() function...
- console.log(curRowNotOk[0]===curRow[0]);//true
- curRow.trigger("click","force");
- curRowNotOk.trigger("click","force");
- })();
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement