It's a block of code. You can execute it conditionally, and have the script
appear in the page whenever you want it to.
Microsoft FrontPage MVP
Different Strangs fer Different Thangs.
> Thanks for the reply. I used register startup script initially and
> yes it works fine when the page first refreshes but it is persistent.
> I only want the script to execute once.
> If you see what I mean :)
> > Page.RegisterStartupScript("Key", scriptString)
> > HTH,
> > Kevin Spencer
> > Microsoft FrontPage MVP
> > Internet Developer
> > http://www.takempis.com
> > Neither a follower nor a lender be.
> > > Hi all,
> > > I need to run a client side script which is generated in a server side
> > > function. The script opens a window.
> > > I wasn't sure of the correct (best) way to execute the script. In the
> > > end the best solution seems to be to dynamically add a label control
> > > to the page with its text set to my open window script.
> > > This works but the window is displayed and then the window with the
> > > main web page is loaded on top of it.
> > > I could use a timer to make the window (hopefully) have it's focus set
> > > after this point but it all seems a bit kludgy.
> > > Any suggestions?
> > > Mark