Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

involk a JavaScript function from button

Status
Not open for further replies.

2cxc

Programmer
Aug 29, 2003
245
CA
this is the JS function I need to involk:

function text1(){
document.writeln(&quot;<link rel=&quot;alternate&quot; media=&quot;print&quot; href=&quot;text1.txt&quot;>&quot;);
}

how can I initiate this function from a button?
This doesn't wanna work:
on (press) {
loadMovie(&quot;pt_kitt.swf&quot;, 2);
javascript:text1();

}

Thanks!
 
thanks i got it working, can a variable created in flash get sent to ASP in the same page without refreshing?
 
yes if you use sendandload the variables are sent behind the scenes
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top