Google Chrome "window.open" workaround?
Posted
by McBonio
on Stack Overflow
See other posts from Stack Overflow
or by McBonio
Published on 2010-04-03T19:07:36Z
Indexed on
2010/04/03
19:13 UTC
Read the original article
Hit count: 207
Hi Folks!
I have been working on a web app and for part of it I need to open a new window. I have this working on all browsers, my sticking point is with Google Chrome.
Chrome seems to ignore the window features which is causing me issues, the thing I'm struggling with is I need the address bar to be editable within the new window. FF, IE, Safari and Opera do this fine, Chrome does not.
My Code:
<script language="javascript" type="text/javascript">
<!--
function popitup(url) {
newwindow=window.open(url,'name','toolbar=1,scrollbars=1,location=1,statusbar=0,menubar=1,resizable=1,width=800,height=600');
if (window.focus) {newwindow.focus()}
return false;
}
// -->
</script>
Any help would be gratefully received! Thanks in advance :)
© Stack Overflow or respective owner