Hi,
You can do something like create a page that links to that
javascript
function and then call the script onload.
For example;
<html>
<head>
<script language='javascript' src='
'></script>
</head>
<body onload='buttonPower("Up")'>
</body>
</html>
So, whenever you go to this page, that function will
immediately be
called when the page loads.
If you want to get more sophisticated though you can use
javascript to
query the querystring of the URL and run different scripts
depending on
what's there.
Hope that helps,
Israel
eggman wrote:
> Hi all,
>
> Not being a javascript programmer, I need some
information on execution
> of javascripts in a web browser.
> At our local TV station, we have equipment that is
controllable via web
> interfaces. For example, our LCD projector can be
controlled thru a web
> interface with buttons for switching on, off etc.
> These control buttons are created in javascript. If I
click on such a
> button, I can see in the status bar
"javascript:buttonPower("Up);"
> Is it possible to execute that same script by typing it
in the URL bar?
> Like
\\Projector\control.html?"javascript:buttonPower(&
quot;Up")" or
> something?
>
>
> Thanks,
> Eggman
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "JavaScript Forum" group.
To post to this group, send email to
JavaScript-Information googlegroups.com
To unsubscribe from this group, send email to
JavaScript-Information-unsubscribe googlegroups.com
For more options, visit this group at http://groups.google.com/group/JavaScript-Information
-~----------~----~----~----~------~----~------~--~---
|