By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,648 Members | 1,654 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,648 IT Pros & Developers. It's quick & easy.

open with no IE menu and buttons

P: n/a
Hello all,

First time in this forum, actually i'm no experience with javascript,
i have one htm file which contains some javascript
one quick question, can i add javascript to let it open with no IE menu
and buttons?
i know that window.open can do it, but i mean script should be added in
this current htm file.

any comments is appreciated.

Best Regards,

-Chris

Jul 24 '06 #1
Share this Question
Share on Google+
4 Replies


P: n/a
"981119" <ne*****@gmail.comwrote in message
news:11**********************@i42g2000cwa.googlegr oups.com...
Hello all,

First time in this forum, actually i'm no experience with javascript,
i have one htm file which contains some javascript
one quick question, can i add javascript to let it open with no IE menu
and buttons?
i know that window.open can do it, but i mean script should be added in
this current htm file.
No... there are no methods to configure the currently active window in that
way. Even if they're were it would have to operate on the current window -
remember that when a browser opens it doesn't "have a page". The chrome
(toolbars, menus, etc) are constructed and displayed before the page is
looked at.

So anything like what you're saying would have to work by eliminating those
features from the current window... and anything that could do that would be
quickly tagged as a security issue by spammers abusing it.

You could, as you noted, open the application in a new, configured window
from a "launcher" page. That's the most common way to do it.

Jim Davis
Jul 24 '06 #2

P: n/a
Hi Jim,

Thanks for you suggestion!

last thing, i create another htm file, can it work as show below?

<script language="javascript">
window.open("calculator-en.htm","","toolbar=no,menubar=no,
scrollbars=no,status=no,top=0,left=0")
</script>

i tried, however no page is loaded.

Thanks!

Best Regards,
-Chris

Jul 24 '06 #3

P: n/a
Hi Jim,

I tried out, yes, it can work:

<script language="javascript">
window.open("calculator-en.htm","","toolbar=no,menubar=no")
</script>

It's really a good forum here,

Thanks you very much Jim.

Best Regards,

-Chris

Jul 24 '06 #4

P: n/a
981119 said the following on 7/24/2006 1:19 AM:

Please quote what you are replying to.

If you want to post a followup via groups.google.com, don't use the
"Reply" link at the bottom of the article. Click on "show options" at
the top of the article, then click on the "Reply" at the bottom of the
article headers.

<URL: http://www.safalra.com/special/googlegroupsreply/ >
Hi Jim,
I tried out, yes, it can work:
You should test that code with IE6 with the popup blocker enabled and
see how long it "works" with a new window that was not initiated by user
interaction.
<script language="javascript">
language is deprecated, use the type attribute instead.
window.open("calculator-en.htm","","toolbar=no,menubar=no")
</script>

It's really a good forum here,
Maybe that would be true if this were a "forum" but, rather, it is a
Usenet Discussion Group.

But, had you read the group FAQ, specifically 4.36, you probably
wouldn't have had to post this question at all.

"How do I modify the current browser window?"
<URL: http://jibbering.com/faq/#FAQ4_36>

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Jul 24 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.