Opening a Browser Window with no Address Bar
Hello All,
I am working on an application which needs to open a new browser window. I need to hide the URL from the user.
Right now, I can open the window with no toolbar or address bar with the following command:
String cmd = "cmd.exe /c start javascript:window.open('http://www.google.ca','main','menubar=0,location=0,toolbar=0,personalbar=0,status=0,scrollbars=1,resizable=yes')";
However, this first opens up a blank window and then the window with no address bar. If I make the command:
String cmd = "cmd.exe /c start javascript:window.open('http://www.google.ca','main','menubar=0,location=0,toolbar=0,personalbar=0,status=0,scrollbars=1,resizable=yes';window.close();)";
then the user is asked if they wish to close the first blank window.
Does anyone know how to open a new browser window via the command line without the annoying extra window?
It works with the following command but the new browser window isn't in "focus".
cmd.exe /c start javascript:window.open('http://www.google.ca','main','menubar=0,location=0,toolbar=0,personalbar=0,status=0,scrollbars=1,resizable=yes');window.opener=top;window.close();
Ryan
Similar Messages
-
Opening a browser window with Java
Is there a way I can open a Browser Window (with a specific html document) from Java? Thanks.
Use Runtime.exec(cmd) with the following command:
Under Windows 9x:
command.com /C" start "urltofile.html"Under other Windows:
cmd.exe /C [start] "urltofile.html" (start is needed when url begins with 'http://") -
Open a browser window with a different icon
I normally have many browser windows and tabs open at the same time. My job requires quick context changes.
I would like to open a window that has a different icon in the tool bar so I can get to that one quickly.
Putting an icon with a preset urls works great but I would like this one session to have a unique icon that stand's by itself in the toolbar.
I'm using Windows 7 but may need to do this with *nix systems in the future.HI nynjnc,
Thank you for your question. I understand that you would like an icon in the toolbar that opens a session/window pretty quickly.
There is an icon in the customize menu in the new Australis menu that is titled "New Window" that would open a blank window.
However if you are looking to open a specific page try this add on: [https://addons.mozilla.org/en-US/firefox/addon/custom-buttons/?src=search Custom Buttons]
Post back to let other users know if this worked for you! -
Open New Browser window with "Server Behavior"
I know how to open a link in a new browser window by going to
the Behaviors panel. The site I'm working on is using PHP, so
instead of a Behaviors panel all it shows is a "Server Behaviors"
panel. Under the "Server Behaviors" there is't an option to open a
link in a new browser window. Should I be looking someplace
different or is there another way to add this function to a link?
Thanks in advance for any help!horsethiefbasin wrote:
> I know how to open a link in a new browser window by
going to the Behaviors
> panel. The site I'm working on is using PHP, so instead
of a Behaviors panel
> all it shows is a "Server Behaviors" panel. Under the
"Server Behaviors" there
> is't an option to open a link in a new browser window.
Should I be looking
> someplace different or is there another way to add this
function to a link?
>
> Thanks in advance for any help!
>
Makes no difference whether youre working on a php site or an
ordinary
htm site you still open a new browser window in exactly the
same way.
windows>behaviours>open browser window -
Opening a browser window from a CHM (Win7)
Hi All,
I'm having a problem where a script we've had for years to open a special window (sized, no browser buttons, etc) for certain content is no longer working correctly in Windows 7.
Here is the script:
function OpenWindowSize(strUrl, u_width, u_height) {
var w_width = ",width=" + u_width;
var w_height = ",height=" + u_height;
var strOptions = "scrollbars=yes,resizable=yes"
strOptions += w_width;
strOptions += w_height;
strOptions += ";";
var newWin = window.open(strUrl, "newWin", strOptions);
// newWin.document.close();
newWin.focus();
WinXP & Vista: a link within a CHM correctly opens a new window with only scroll bars, and resizable, with the specified dimensions (e.g. u_width=500, u_height=700)
Win7: a link opens in a regular browser window with full menus, etc and not sized to the specified dimensions. An error also displays in the CHM file.
CHM error message (snippet): 'newWin' is null or not an object.
A developer managed to get the CHM error to go away by adding if (newWin != null) above the focus() line.
He also managed to prove that the problem only exists within CHMs. When the same javascript is used in plain HTML, the window is called correctly, as per the WinXP & Vista example above.
Does anyone know how to get my script working in Win7 so that it is sized correctly and doesn't have the menus/buttons?
Thanks,
AmberHey All,
I just got a message from PatricioV2, for this...I totally forgot to come back to the forum...I was so busy trying to work out the solution that now, I forget the specifics, but I did find out that there is NO WAY to customize a pop-up window from a CHM with IE 9 or 10 installed...any pop-up will have ALL the browser timings. And since I didn't want that effect, I abandoned that idea and pursued a different solution.
However, I was able to use jQuery Colorbox...which really surprised me. But even with this, you cannot use "linked" images from the stylesheet so the controls don't show...so, you need to "style" the elements with color values (i.e. background, borders, etc.).
Also, and very important, if your content is in an IFRAME in the CHM (which mine was), you MUST use a jQuery technique to get your colorbox to work on the PARENT window...otherwise, the colorbox effect will happen ALL INSIDE THE IFRAME...
...and on a side note: the code in the original post is very close to the code I was using...but all I needed to do was define the value of NULL and the script worked without any errors (which is in a post above)...but not being able to style the pop-up just ruined it for me... -
Why does this forum open in a window without the menu bar ?
When coming to this forum trough the " Access the Java Studio Creator Community Forum" link on the "Java Studio Creator Forums" page, it opens a browser window without the menu bar. I understand that Sun thinks it's better for me not to have the menu bar, but I personally prefer to have it. What I prefer over everything else is to have the choice.
By the way, one of the reason I prefer Sun products over Microsoft products is that I generally can choose what is better for me. Like to have or have not a menu bar, or to have my IDE in english rather that in french. (By the way, this last issue has been solved ;-))Use this direct URL, you can have the menu bar still --
http://swforum.sun.com/jive/forum.jspa?forumID=123
Thanks,
Sakthi -
Since updating to 3.6.1 I don’t get an empty browser window in my tool bar when it opens --- just a list of search engines. I can’t find anything in “Help” or the FAQ’s that seem to address this.
My only choice seems to go back to Safari.I am not sure what your problem is, can you give more details.
One possibility is you may be in full screen mode, for details on fixing that see the [[menu bar is missing]] article.
If you are missing various toolbar items, see the [[back and forward or other toolbar items are missing]] article.
If your problem is something else please give more details. -
Open Browser with No Address Bar from Java
How to open a IE Browser from Java with no address bar, tool bar etc ?
I am able to open browser like the listed code, but the requirement for me is it has to open with no "Address Bar", buttons.
I know we can do that in "Javascript" but how to or is there a way to do that in java/swing.
Any help is greatly appreciated.
String WIN_FLAG = "url.dll,FileProtocolHandler";
String WIN_PATH = "rundll32";
String url = "www.google.com"
String cmd = WIN_PATH + " " + WIN_FLAG + " " + url;
Runtime.getRuntime().exec( cmd );Use javascript for this. I would do it this way....
You can decide with JS if you want tot hide so elements from your browser. Should not be very difficult to implement -
After I open the first Firefox browser window, any additional window I open does not open my homepage, but opens a blank page with "New Tab" showing on the tab. An orange "Firefox" tab with a drop down arrow shows at the upper left hand corner of the screen. All of the options (File, Edit, etc.) are greyed out, however they will work if you move your cursor over them.
The URL address window says "Go to a Web Site". After I've gone to a website, the back button remains greyed out and I am not able to go back to a previous page. My RoboForm and Netcraft toolbars only show up in an abbreviate form. The add-on bar doesn't show up at all.
Again, this is a recent problem, and only happens after I've opened one browser window (which works fine) and then open additional browser windows (as few as one additional).I had this same problem. Seems to be caused by the web developer tool bar FF extension (this started happening after a recent update to that extension). After disabling it, my FF is back to normal :)
-
Opening application with no Address Bar
Hi,
We are developing an external WebDynpro application that should start-up with no Address Bar and Standard Buttons Bar.
Does anyone has a solution for running the application/browser with no Address Bar and Standard Buttons Bar.
Thanks in advance,
AviadHi,
byte[] pdfContent={here document is created i.e returned from RFC};
IWDCachedWebResource pdfResource=WDWebResource.getWebResource (pdfContent,WDWebResourceType.PDF);
IWDWindow window = wdComponentAPI.getWindowManager().createNonModalExternalWindow(resource.getAbsoluteURL(),"");
window.removeWindowFeature(WDWindowFeature.TOOL_BAR);
window.removeWindowFeature(WDWindowFeature.ADDRESS_BAR);
window.removeWindowFeature(WDWindowFeature.STATUS_BAR);
Regards,
Vijai -
I want the I bar to start in the search bar when opening a new page NOT the address bar.
Thank You.What's an "I bar?"
Tip: Ctrl+E will place your cursor in IE8's Search box.
You will find Consumer support for IE8 in this forum:
http://answers.microsoft.com/en-us/ie/forum/ie8
~Robear Dyer (PA Bear) MS MVP-Windows Client since 2002 Disclaimer: MS MVPs neither represent nor work for Microsoft -
Why does email hypertext in PDF open web browser window in addition to email client?
Using FrameMaker 10, I created the following hypertext: message URL mailto:[email protected] I then printed to PDF. When I click the link in the PDF it opens an email client message window (what I want) but also opens a web browser window with mailto:[email protected] in the address bar (what I don't want). Why would it open both? I don't know if this is a Frame issue (more likely), an Acrobat issue (less likely), or a browser issue (not likely). I hope I'm just missing something easy here.
Should have given the following info earlier...running Win 7 64-bit with Outlook 2010 and Acrobat X Pro. That being said the path to verify "mailto" is different but it is set up fine. Same with Acrobat X Pro...settings are fine.
Also, in reply to Harry28586 this is happening with Firefox, not IE (I should have mentioned that as well).
I've found plenty of threads searching online regarding issues with email links in Acrobat on Win 7 machines with Outlook...many suggest editing the registry. I have no problem doing that but this is a work laptop and we have a don't-fix-it-yourself policy. So I'll keep looking. Thanks for all the suggestions. -
Is it possible to open a browser window from an applet?
Hi,
this might seem a simple beginners question to you, but to me it is more like a nightmare.
Is it possible to have a link in an Applet that opens up a new browser
window with a fixed address??
If yes, can anybody tell me how? or where can I find documentation about it?
Please help me.
Thanks.
dunjamyApplet.getAppletContext().showDocument(URL url, String target);
TARGET:
"_self" Show in the window and frame that contain the applet.
"_parent" Show in the applet's parent frame. If the applet's frame has no parent frame, acts the same as "_self".
"_top" Show in the top-level frame of the applet's window. If the applet's frame is the top-level frame, acts the same as "_self".
"_blank" Show in a new, unnamed top-level window.
name Show in the frame or window named name. If a target named name does not already exist, a new top-level window with the specified name is created, and the document is shown there. -
Browser's helpful URL address bar is not actually ...
In context to S60's default browser. When you start browser, it takes you to deafult Bookmarks page with URL address bar at the bottom of the screen. And there is pretyped URL http://www. to make life easier where we can starting typing main part of the web address.
This is actually not helpful because -
1) most of the web sites we visit from mobile starts with m. or mobile.
2) many mail sites start with mail.
3) and for all those websites which starts with www. can start without even mentioning www (as this has becom norm these days e.g., nokia.com, hotmail.com, ovi.com etc).
Lets visit mobile.xyz.com. Since there is no direct way to go to URL address bar (except long way of going through Options), you type random character on the keyboard, this character gets typed in the bar and cursor is finally there, hit backspace 5 times and then you are ready to type the actual URL.
What nokia should do is change pretyped URL to just http://
Don't you think this is a common sense?
Message Edited by willstay on 11-Dec-2009 10:54 AMI agree with you.
It is very confused some time.
Blackbery solved same problem easy. when u open browser default string http://www is already typed and if u pres backspace key (like delete or "C") it will delete www string only. hope nokia will find some solution for it in future -
Open a blank window with parameters
How can I open a new browser window when i click a link but i
want it to
open in a seperate window and be only a certain size and
centred on the
screen...
YanmanYep. This probably means you didn't select the tag before
applying the
behavior.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"Yanman" <[email protected]> wrote in message
news:[email protected]...
> Yes it was wonky.. Ive fixed it.. So it does work the
way I want..Thanks!
>
>
> "Murray *ACE*" <[email protected]>
wrote in message
> news:[email protected]...
>> Let's see your page. You must have applied the
behavior to the BODY tag,
>> i.e.,
>>
>> <body onclick="..."
>>
>> --
>> Murray --- ICQ 71997575
>> Adobe Community Expert
>> (If you *MUST* email me, don't LAUGH when you do
so!)
>> ==================
>>
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
>>
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
>> ==================
>>
>>
>> "Yanman" <[email protected]> wrote in
message
>> news:[email protected]...
>>> Actually I noticed now that that behavior tool
works fine except it
>>> works no matter where you click on the
page...onclick refers to anywhere
>>> on the page according to this tool.. I would
like it to work only when i
>>> click a link...is there any way of changing this
behaviour or changing
>>> the code to work only when clicking a link the
action will open a
>>> browser window in a certain size and certain
spot on the page..??
>>>
>>>
>>>
>>> "Yanman" <[email protected]> wrote
in message
>>> news:[email protected]...
>>>> Thanks alot dude! I really really appreciate
that tool!!! wicked..
>>>> Im one happy webdesigner!
>>>>
>>>> "Tarvardian"
<[email protected]> wrote in message
>>>> news:[email protected]...
>>>>> Hi Yanman --
>>>>>
>>>>> Check out this extension:
>>>>>
http://www.flevooware.nl/dreamweaver/extdetails.asp?extID=8
>>>>>
>>>>> I've used it quite a few times with
great success. It allows you to
>>>>> pretty much specify whatever you want
for the new window: size,
>>>>> location, what Windows attibutes you
want (nav toolbar, location
>>>>> toolbar, status bar, etc.)
>>>>>
>>>>> Hope this helps.
>>>>> John
>>>>>
>>>>> "Yanman" <[email protected]>
wrote in message
>>>>>
news:[email protected]...
>>>>>> How can I open a new browser window
when i click a link but i want it
>>>>>> to open in a seperate window and be
only a certain size and centred
>>>>>> on the screen...
>>>>>>
>>>>>> Yanman
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>
>
Maybe you are looking for
-
Time Stamp a Voice Memo to the Second
I need to make a voice memo that's date and time-stamped to the second. It looks like Voice Memo doesn't do this (but if there's a way to, please advise!). Does anyone know an app that would do this? The greatest thing would be to be able to make the
-
Get row number of record in Interactive Report
I am using an interactive report and want to be able to modify a field and if the value already exists in the database change it back to what it was originally. I am selecting data using the select statement below and I'm calling the javascript Check
-
Hi I am a beginner to java. I want to use javamail API to send a mail which is to be part of my java program. I downloaded javamail API from sun. How can I incorportate in the Java program? Thanks in advance Kuttan
-
WBS element withot Billing element
Hi Is it possible to create sales order with account assinment ' WBS element w/o Billing element' ?
-
SSRS to Oracle 64 bit vs 32 bit patch
I have one server running Windows Server 2003 R2 and SQL Server 2008 x64 with Reporting Services. I am creating a report from within BIDS which uses the 32 bit (x86) directory. This report points to an Oracle 10g 10.2.0.3.0 database on another server