Solved

Javascript to display URL without menubar

Posted on 2011-09-30
6
157 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
Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

 
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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

I've been trying to accomplish this for a while and it just struck me yesterday how to accomplish this task. I have done searches all over the internet looking for ways to email pages from my applications and finally I have done it!!! Every single s…
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…
Suggested Courses

627 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