[Javascript] Javascript echo()?
Hassan Schroeder
hassan at webtuitive.com
Fri Oct 5 15:31:56 CDT 2007
tedd wrote:
>>> How can I send both a php and a javascript variable at the same time?
> Is there a way to tie an open window to javascript's window object?
> Or, perhaps another solution to the original problem?
I'm totally mystified what "window.open" has to do with the original
question, but in any case, this should do it --
function add_my_value(val) {
document.getElementById("x").href += "&t=" + val;
}
<a id="x" href="foo.html?s=bar">something</a>
HTH,
--
Hassan Schroeder ----------------------------- hassan at webtuitive.com
Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com
dream. code.
More information about the Javascript
mailing list