944,004 Members | Top Members by Rank

Ad:
Jan 26th, 2006
0

No toolbars in window

Expand Post »
I want to be able to open a new window with simple html, like this:

<a href="file.htm" target="_blank">click here</a>

I want to then put javascript in the header of that new file that takes off attributes such as toolbars or scrollbars. This has to be possible.

Thanks.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Light Poster
stupidfly is offline Offline
36 posts
since Oct 2004
Jan 26th, 2006
0

Re: No toolbars in window

Research the JavaScript "window.open()" method. You can do everything you've asked via the parameters for that method.
Team Colleague
Reputation Points: 227
Solved Threads: 37
Made Her Cry
tgreer is offline Offline
1,697 posts
since Dec 2004
Jan 30th, 2006
0

Re: No toolbars in window

Quote originally posted by stupidfly ...
I want to be able to open a new window with simple html, like this:

<a href="file.htm" target="_blank">click here</a>

I want to then put javascript in the header of that new file that takes off attributes such as toolbars or scrollbars. This has to be possible.

Thanks.
Sure can

example grabbed quickly from my web page....

<script type="text/javascript" >
    <!--
    function launch(newURL, newName, newFeatures, orgName) {
    var remote = open(newURL, newName, newFeatures);
    if (remote.opener == null)
    remote.opener = window;
    remote.opener.name = orgName;
    return remote;
  }
    function wow() {
    myRemote = launch("lots.html", "myRemote", "height=380,width=480,innerHeight=580,innerWidth=500,screenX=10,left=10,screenY=20,top=20,channelmode=0,dependent=1,directories=0,fullscreen=0,location=0,menubar=0,resizable=1,scrollbars=1,status=0,toolbar=0", "wow");
    }
    function launchwin() {
    myRemote = launch("blogroll.html", "myRemote", "height=580,width=500,innerHeight=580,innerWidth=500,screenX=100,left=100,screenY=100,top=100,channelmode=0,dependent=1,directories=0,fullscreen=0,location=0,menubar=0,resizable=1,scrollbars=1,status=0,toolbar=0", "dx");
    }
// -->
</script>

sorry this is quick and dirty but with the time difference and the work hrs, I am fading... (this might help)
Last edited by tgreer; Feb 2nd, 2006 at 3:24 pm. Reason: added code tags
Reputation Points: 10
Solved Threads: 0
Newbie Poster
mswebpeople is offline Offline
6 posts
since Jan 2006
Jan 31st, 2006
0

Re: No toolbars in window

Thanks for the help. I got a solution.
Reputation Points: 10
Solved Threads: 0
Light Poster
stupidfly is offline Offline
36 posts
since Oct 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in JavaScript / DHTML / AJAX Forum Timeline: RegExp.replace Not Working
Next Thread in JavaScript / DHTML / AJAX Forum Timeline: Mouseover/Rollover





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC