"kuba" wrote
i've problem.
here is sample code:
<SCRIPT LANGUAGE="JavaScript">
<!--
//var city = NewYork;
function check(form,city)
{
blabla
}
is that possible to change this variable (city) to other ?
i've no access to target page and i need to execute this code on this page
with another variable
If you type in the addressbar:
javascript
:var city="London"; void("");
the variable will be changed. The void() thing is necessary bacause this
code will return a value (the value of the assignment) and we must prevent
the browser from "navigating" to display this return value as that would
mean we leave the page.
If you type
javascript
:check(form,"London"); void("");
the function will run on your command, not because of an event in the page.
HTH
Ivo