Advertisement
Guest User

Untitled

a guest
Apr 12th, 2013
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.50 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4.  
  5. <meta charset="utf-8" />
  6.  
  7. <script src="jquery-1.9.1.js"></script>
  8. </head>
  9. <body>
  10. popup
  11. <script>
  12. (function(){
  13.  
  14. var curRow = window.top.opener.$("#ldiv");
  15. var curRowNotOk = $(window.top.opener.document.getElementById("ldiv"));   // This way the parameterer forceRefresh is not passed in the on() function...
  16. console.log(curRowNotOk[0]===curRow[0]);//true
  17. curRow.trigger("click","force");
  18. curRowNotOk.trigger("click","force");
  19. })();
  20. </script>
  21. </body>
  22.  
  23. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement