Solved

Javascript to display URL without menubar

Posted on 2011-09-30
6
151 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
  • 3
  • 3
6 Comments
 
LVL 17

Expert Comment

by:sonawanekiran
Comment Utility
<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
Comment Utility
0
 

Author Comment

by:MrDavidThorn
Comment Utility
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
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 
LVL 17

Accepted Solution

by:
sonawanekiran earned 250 total points
Comment Utility
>>Menu bar
Is it browser's menu bar OR your application menu bar?
0
 

Author Comment

by:MrDavidThorn
Comment Utility
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
Comment Utility
fam
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Today I would like to talk about localizing (Internationalization) JavaScript applications. Introduction When creating an application that is going to be used by many people around the globe, it is important to remember that not everyone speak…
Having worked on larger scale sites, we found out that you are bound to look at more scalable solutions to integrating widgets, code snippets or complete applications and mesh them into functional sites, in any given composition. To share some of…
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…

763 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

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now