Page 1 of 1
passing GET variable with javascript
Posted: Thu Jan 29, 2004 8:53 am
by bluesman333
This doesn't work:
Code: Select all
<?php
print
"<a href= "javascript:newWindow()"?Date=today>Link to New Page</a><br>";
?>
Posted: Thu Jan 29, 2004 9:04 am
by ol4pr0
Posted: Thu Jan 29, 2004 9:24 am
by bluesman333
No that didn't help me.
I'm using a javascript function that opens a new window. The function is being used on a calandar, where each data has a link to a new window. I want to pass a GET variable to the new window.
but this does not work:
Code: Select all
<?php
print
"<a href= "javascript:newWindow()"?Date=today>Link to New Page</a><br>";
?>
?>
Posted: Thu Jan 29, 2004 9:56 am
by microthick
Yep. That doesn't work. It has no chance of working.
Instead, pass the parameter you want to include into the URL to the newWindow() function.
Or get your new window function to add it on it's own.