Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Java Script to remove tool bars?

  • 20-08-2004 12:00PM
    #1
    Registered Users, Registered Users 2 Posts: 1,747 ✭✭✭


    I know it is possible to remove the toolbars when opening a new screen from a link with Javascript but is it possible to do it from a web page that a user just browses to?
    Google give loads of example of the pop up method but not the other.


Comments

  • Registered Users, Registered Users 2 Posts: 78 ✭✭talos


    I don't remember, but try this:
    window.onload = function a 
    {
    
    put the code from the examples, to remove the toolbar
    
    }
    


  • Banned (with Prison Access) Posts: 16,659 ✭✭✭✭dahamsta


    I'm pretty sure the Javascript permission model doesn't allow you to change the attributes of the current window, you'd need a digitally signed Javascript to do it.

    adam


  • Moderators, Politics Moderators, Paid Member Posts: 44,044 Mod ✭✭✭✭Seth Brundle


    create a pop up which opens a new page which contains code to resize to the viewers screen res.
    Hoever most people (incl. myself) hate pop-ups!
    Otherwise don't do it - Im sure your visitors would be quick to leave if you started changing their current window settings


  • Registered Users, Registered Users 2 Posts: 1,747 ✭✭✭Figment


    Its for a web application with limited access where the tool bars are not needed.
    The space is needed so toolbars have to go.

    thanks guys.


Advertisement