Solved

Javascript to display URL without menubar

Posted on 2011-09-30
6
153 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
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
ScreenConnect 6.0 Free Trial

Explore all the enhancements in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

 
LVL 17

Accepted Solution

by:
sonawanekiran earned 250 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
bootstrap footer centering and columns alignement 3 57
how can i extend ? 2 43
DataTables + iCheck + pagination Issue 2 19
Diminish Pop-up  in 3 seconds 7 15
Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
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…

770 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