Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Javascript to display URL without menubar

Posted on 2011-09-30
6
Medium Priority
?
160 Views
Last Modified: 2012-05-12
Hi Experts

I know the Javascript to open a window (url) without a menu bar but I want the java script to be included within the url or when the page is opened.

i.e
<script type="text/javascript">
                window.menubar = false;
    </script>
Does anyone know the syntax on how to do this?
0
Comment
Question by:MrDavidThorn
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 17

Expert Comment

by:sonawanekiran
ID: 36890651
<A HREF="newWindowURL" onClick="window.open('newWindowURL','nameOfWindow','width=xxx,height=xxx,menubar,status,scrollbars,resizable,toolbar,location,directories');return false">Pop-up Window Link</A>
0
 
LVL 17

Expert Comment

by:sonawanekiran
ID: 36890656
0
 

Author Comment

by:MrDavidThorn
ID: 36890679
Hi thanks but I dont want the user to click a button to open the pop up, its opened from an email so it needs to hide the menu bar on loading the page not from a another forms command button
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 17

Accepted Solution

by:
sonawanekiran earned 1000 total points
ID: 36890725
>>Menu bar
Is it browser's menu bar OR your application menu bar?
0
 

Author Comment

by:MrDavidThorn
ID: 36890885
browsers menu bar

the following JS works but if the window is opened from a command button

window.open("http://www.w3schools.com","_blank","toolbar=yes, location=yes, directories=no, status=no, menubar=yes, scrollbars=yes, resizable=no, copyhistory=yes, width=400, height=400");
}

becuase I am opening the page from (outlook) an html email the page does not support JS, so I need to resize the page and remove menu bars when the actual page opens.
0
 

Author Closing Comment

by:MrDavidThorn
ID: 36965312
fam
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

721 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question