O
Oliver Wong
I'm trying to have the "submit" button of a form open a new window
which loads a PDF, and also to redirect the window containing the submit
button to a new location. Here's a small HTML file demonstrating my code:
<html>
<body>
<input type="button"
onclick="window.open('http://www.cs.ubc.ca/~lowe/papers/ijcv04.pdf');
window.location = 'http://www.google.ca/';"/>
</body>
</html>
This works in IE6 and Firefox, but it seems to fail in IE7. In IE7,
the redirection to a new page will work, but opening the PDF in a new
window will fail. What can I do to get the script to work in IE6, IE7 and
Firefox?
- Oliver
which loads a PDF, and also to redirect the window containing the submit
button to a new location. Here's a small HTML file demonstrating my code:
<html>
<body>
<input type="button"
onclick="window.open('http://www.cs.ubc.ca/~lowe/papers/ijcv04.pdf');
window.location = 'http://www.google.ca/';"/>
</body>
</html>
This works in IE6 and Firefox, but it seems to fail in IE7. In IE7,
the redirection to a new page will work, but opening the PDF in a new
window will fail. What can I do to get the script to work in IE6, IE7 and
Firefox?
- Oliver