execute a javascript on startup

F

fred rosenberg

hi,

this sounds like it should be easy, but one never knows.

i want a web page that when someone goes to it, it automatically executes a
javascript (which then starts up a demo of my product, with the code:
javascript:eek:penDemo('Demos/OIADemoPart1',820,650); this code works great
when a user clicks on it via a link on a page, but i need it to
automatically start the demo.

thanks!

fred

--
Fred Rosenberg
Osage Computing Services, Inc.
http://www.osagecomputing.com
Creators of "Osage Inside Access"
-- A MultiFunction Developer's Dashboard Featuring Clickable Dependent
Objects
 
S

Steve Easton

Try adding the following to the body tag:

onload="javascript:eek:penDemo('Demos/OIADemoPart1',820,650);"

or if openDemo is the function use this in the body tag: onload="openDemo()"


--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed..................
...............................with a computer
 
F

fred rosenberg

that worked! thanks steve. fred

--
Fred Rosenberg
Osage Computing Services, Inc.
Creators of "Osage Inside Access"
-- A MultiFunction Developer's Dashboard Featuring Clickable Dependent
Objects
 
F

fred rosenberg

PS steve, where do you suggest i look for some basic documentation on
javascripting?

fred

--
Fred Rosenberg
Osage Computing Services, Inc.
Creators of "Osage Inside Access"
-- A MultiFunction Developer's Dashboard Featuring Clickable Dependent
Objects
 
S

Steve Easton

There is a great resource here with tons of examples and/or links to examples.
http://www.gatescript.com/default.asp

hth

;-)
--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed..................
...............................with a computer
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top