Solved

Javascript to display URL without menubar

Posted on 2011-09-30
6
156 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
Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

 
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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Link Anchor Not working 9 67
web page freezes after ajax post 7 102
HTML editor custom button 3 90
How do I refresh ajax data from controller using angular? 3 23
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…
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
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…

752 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