Passing Variables Inside window.open for JavaScript?
Here is the code I currently have :) Most of which works great..
<script type="text/javascript">
var mySideRes = screen.width*.2
function WindowOpen(url)
{
window.open(url, "sideBar", "width='mySideRes', height=200, resizable=yes, scrollbars=no, status=no");
}
</script>
...
Checking this <a href="#" onClick="WindowOpen('sidebar.php');">
Sidebar</a>
So as you see, it will open up a window however the variable for 20% of the current browser width will not pass through it keeps opening up in 100%, I also will try to make a variable for 100% of the current height and try to pass that through if i can get this working
Thanks! Shawn
Jeremy my man! You are awesome, I cant believe i forgot something that simple! :)
A++!
Jeremy my man! You are awesome, I cant believe i forgot something that simple! :)
A++!