I have a button and when the user clicks the button this code is triggered...
window.open('','','width=640,height=480,resizeable,scrollbars');
which opens a new window. What I want displayed is the the current page in that new window so I tried..
window.open('window.parent.getElementById("printPage")','','width=640,height=480,resizeable,scrollbars');
but all it says is that the file is not found :(
Can anyone tell me what I am doing wrong, if this is possible and how do i fix it?
Thanks, J
window.location
should give you the current windows location, so: