Re: 2htmls and 2javascripts
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

Re: 2htmls and 2javascripts

From: Ian Collins <ian-news@hotmail.com>
Date: Fri Apr 21 2006 - 08:41:33 CEST

Green Horn wrote:
> Hi,
>
> im newby in JScript and i have a problem with passing events from one html
> to another...
>
> For example,
>
> in x.html i have following jscript event
>
> function Event1{
> ....some code...
> }
>
> and in y.html i have following jscript event
>
> function Event2{
> ....some other code...
> }
>
> and i want to place in Event2 (in y.html) in "...some other code..." some
> code/function to fire Event1 (in x.html)..
>
> but i dont know how :(
>
You can't, unless the two HTML pages are contained within frames in the
same page.

Once a new HTML page is loaded, all scripts associated with the current
page are lost.

-- 
Ian Collins.
Received on Mon May 1 05:12:15 2006