what about inline pop-ups? You can write your own code or see this: http://docs.jquery.com/UI/Dialog.
I dont use standard window.open javascript function at all, as in IE 8 it's IMHO impossible to hide location bar.
Inline (I mean html) dialogs have more features than window.open.
Hope it helps.
Answer from Feryt on Stack Overflowwhat about inline pop-ups? You can write your own code or see this: http://docs.jquery.com/UI/Dialog.
I dont use standard window.open javascript function at all, as in IE 8 it's IMHO impossible to hide location bar.
Inline (I mean html) dialogs have more features than window.open.
Hope it helps.
No, there is no way to get rid of that bar in IE7 - this change was brought in as a security measure to help combat phishing.
As Feryt says, you can use inline popups, which is probably a better solution anyway.
window.location Does Not Work on Chrome Browser [closed]
New window placement, size and location - Google Chrome Community
window.open location=no does not work
JavaScript Window.Open location feature not working - Stack Overflow
The most common use of window.location is to make the browser load a new page. A common error is to assign the URL to the window.location object instead of it's property href. So, the correct way to do it is:
window.location.href = 'http://www.guffa.com';
Try appending "return false;" to your javascript call like so...
window.location.href='google.com;
return false;
The other answers are outdated. The behavior of Chrome for window.open depends on where it is called from. See also this topic.
When window.open is called from a handler that was triggered though a user action (e.g. onclick event), it will behave similar as <a target="_blank">, which by default opens in a new tab. However if window.open is called elsewhere, Chrome ignores other arguments and always opens a new window with a non-editable address bar.
This looks like some kind of security measure, although the rationale behind it is not completely clear.
This worked for me:
newwindow = window.open(url, "_blank", "resizable=yes, scrollbars=yes, titlebar=yes, width=800, height=900, top=10, left=10");
href is a property, not a method. Just assign the URL to it:
window.opener.document.location.href = url;
This will work in IE also. It's a property there too, even if it lets you use it as a method.
Use below code to achieve desired results.
Parent:
<script language="javascript">
function open_a_window()
{
var w = 200;
var h = 200;
var left = Number((screen.width/2)-(w/2));
var tops = Number((screen.height/2)-(h/2));
window.open("window_to_close.html", '', 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width='+w+', height='+h+', top='+tops+', left='+left);
return false;
}
// opener:
window.onmessage = function (e) {
if (e.data === 'location') {
window.location.replace('https://www.google.com');
}
};
</script>
<input type="button" onclick="return open_a_window();" value="Open New Window/Tab" />
Popup:
<!DOCTYPE html>
<html>
<body onload="quitBox('quit');">
<h1>The window closer:</h1>
<input type="button" onclick="return quitBox('quit');" value="Close This Window/Tab" />
<script language="javascript">
function quitBox(cmd)
{
if (cmd=='quit')
{
window.opener.postMessage('location', '*');
window.open(location, '_self').close();
}
return false;
}
</script>
</body>
</html>
Per https://developer.mozilla.org/en-US/docs/Web/API/Window/open
It appears you need the second param.
window.open(url, windowName, [windowFeatures]);
openWindow(info) {
window.open('http://10.100.100.100:9999/window?someInfo=' + info, '_blank');
},
I was lodged here on search.
I faced such issue only on mobile chrome.
The two param didn't work for me. So i used 3 params.
openWindow(info) {
window.open('http://10.100.100.100:9999/window?someInfo=' + info, '_blank', 'popup=1');
}
or
openWindow(info) {
window.open('http://10.100.100.100:9999/window?someInfo=' + info, '_blank', '');
}
Posting this because Chrome wouldn't even open — no window, no error message — and I couldn't find a working fix until now. It was running in the background, but nothing showed up in Task Manager. Reinstalling didn’t help. Here's what worked for me (Need help? Copy these instructions in ChatGPT so the tool guides you).
Please comment if this helped or if you found another solution that worked! Let's help others who might be facing this issue.
Enable hidden folders:
Open File Explorer and go to the
Viewtab.Check the box that says Hidden items to show hidden folders.
Navigate to Chrome’s data folder:
Press
Win + R, type this and press Enter:%LOCALAPPDATA%\Google\ChromeYou should see the folder where Chrome stores its data. If you can't see it, enable the "Hidden items" option as mentioned earlier.
Delete the Chrome folder:
Delete the entire Chrome folder. This will remove your profile data, which may be corrupted.
Uninstall Chrome:
Go to Control Panel > Programs > Uninstall a Program.
Find Google Chrome and uninstall it.
Reinstall Chrome:
Download the latest version of Chrome from the official website and install it.
Setting the location works just fine, but then the form is submitted, which will reload the current page instead.
Return false from the method:
function sendmail() {
window.location.href = "http://www.rainbowcode.net/index.php/profiles/mail?="+mailid;
return false;
}
and return that status in the event to stop the submit:
<input type="submit" value="Send" onclick="return sendmail()">
I spent 2 days trying every solution shown here and elsewhere, to no avail. Then I removed the form tags, which served no purpose since there was no submit button, and the problem went away using:
window.location = 'mypage.php', true;