at 6.37p EDT on 2004 February 12 Thursday Jan Reichert said:

> P.S. about opener.method: I was not able to define a JavaScript function 
> in a window I opened and wrote by a JavaScript, and I only ask ... if 
> there is a Java-JavaScript guru listening ...
> 

do you mean something like this?

<!--
<html>

<head>
   
<script type="text/javascript">
   function openWin()
   {
      myWin = window.open();
      myWin.document.open();
      myWin.document.write(
         "<html><head><script type='text\/javascript'>" + 
         "function openAlert() " + 
         "{alert('alert fired!');}" + 
         "<\/script><\/head><body>" + 
         "<a href='javascript:openAlert()'>click here<\/a>" + 
         " to fire an alert.<\/body><\/html>");
      myWin.document.close();
   }
</script>

</head>

<body>

<a href="javascript:openWin()">click here</a>  
to open a window created by js, loading a doc written by js and containing 
a js alert function.

</body>

</html>
-->



regards,

:tim

-- 
timothy driscoll
molvisions - molecular graphics & visualization
<http://www.molvisions.com/>
usa:north carolina:wake forest


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id56&alloc_id438&op=click
_______________________________________________
Jmol-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to