Advertisement
Guest User

Untitled

a guest
May 29th, 2015
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3.  
  4. <head>
  5. <!-- <meta http-equiv="refresh" content="5"> -->
  6. </head>
  7.  
  8. <body>
  9. <script type="text/javascript">
  10. // define the function with your source as parameter
  11. function __exec(params) {
  12. // declare the object "vCont" to which you later want to "assign" the source content
  13. var vCont = document.getElementById('valContainer')
  14. vCont.innerHTML = params[1];
  15. }
  16.  
  17. function openPopup(target,name,opts)
  18. {
  19. window.open(target,name,opts);
  20. }
  21.  
  22. document.functionToBeCalled=function (parametre)
  23. {
  24. __macro(['Module1.recalculate']);
  25. //alert('damn');
  26. //__set('foo');
  27. }
  28.  
  29. </script>
  30. <div id="valContainer" style="position: inherit; width: 200px; height: 200px;"></div>
  31. <a href="javascript:openPopup('/pr/custom/childWindow.html','','directories=no,menubar=no,status=no,location=no,scrollbars=no,resizable=no,width=200,height=200,fullscreen=no');">open me</a>
  32. </body>
  33.  
  34. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement