I have this:
but I want to also include this within the setTimeout: newwindow.document.getElementById("menu_box_cont").style.display="none"Code:<script type="text/javascript"> var changeIt, print_div; changeIt = function() { print_div = document.getElementById("sec_content").innerHTML; newwindow=window.open( 'targetpage.html', target="_blank" ); setTimeout('newwindow.document.getElementById("print_content").innerHTML=print_div',1000) }; </script>
how can I do that? I'll appreciate any help.


Reply With Quote

Bookmarks