need help revising this javascript that opens to a new window on submit/post
Posted
by Brad
on Stack Overflow
See other posts from Stack Overflow
or by Brad
Published on 2010-05-04T18:09:55Z
Indexed on
2010/05/04
18:18 UTC
Read the original article
Hit count: 190
JavaScript
|jQuery
I have a form that once you select from a drop-down list and select submit, it is suppose to open up to a new window
Here is the code that is currently on the page and I think it needs to be completely wiped out or revised, it only works in IE and Firefox
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
//<!-- Hide JavaScript from older browsers
// Function to open a window
function windowOpen(window_url) {
helpWin = window.open(window_url,'','toolbar=yes,status=no,scrollbars=yes,menubar=yes,resizable=yes,directories=no,location=no,width=350,height=400');
if (document.images) {
if (helpWin) helpWin.focus()
}
}
// End script hiding -->
</SCRIPT>
© Stack Overflow or respective owner