Solved

openning a new, smaller window command

Posted on 1997-05-27
5
259 Views
Last Modified: 2013-12-25
I have been looking for either an applet, Java script or HTML command that will create a new smaller window that will open up from "inside" my sites when commanded to from the main page. I need it to be able to hold and run things like a midi console or navigation buttons or site map for example, so the visitor can call it up from the task bar without going back or forth inside the main site. Any suggestions or solutions would be greatly appreciated. Thanks again for the great site and service! PS: I need something that will work in both IE and Netscape Browsers. The script that was given in reply to my original question doesn't work in IE. Thanks again!
0
Comment
Question by:graphics
  • 3
5 Comments
 

Expert Comment

by:nodas
ID: 1854259
Put this into your home page
<script language="JavaScript">
<!-- hide from non-JavaScript browsers
function OpenSmallwindow()
 { window.open("smallwindow.htm", "OpenSmallwindow",",,,,,scrollbars,,width=380,height=280,top=60,left=60");
}
</script>


Then you can close it with the following :
<a href="javascript:window.parent.close()">OK>
// end hide -->


0
 

Author Comment

by:graphics
ID: 1854260
Thank you! If I want to use a button or icon etc... do I just reference to this script?
0
 

Author Comment

by:graphics
ID: 1854261
Edited text of question
0
 

Author Comment

by:graphics
ID: 1854262
HELP! Anyone with a tried and true cross platform fix? Thanks in advance!
0
 
LVL 4

Accepted Solution

by:
jshamlin earned 80 total points
ID: 1854263
Nodas's script should be cross-platform and should work with Netscape 2.0 or 3.0 or Internet Explorer 3.0 (but not previous versions) - you'll need to use proper Javascript Syntax, though.  See http://home.netscape.com/eng/mozilla/3.0/handbook/javascript/ref_m-q.htm#177627 for a full detail on the window.open method and the correct syntax for implementing it (I could provide a more detailed example if you provide more details about the parameters for the window)

You can make that work upon a button click if you use this ...

<FORM>
<INPUT TYPE="button" VALUE="[button text]" onClick="javascript_statement]">
</FORM>

Passing various objects to that window is pretty tricky, though - you'll probably need to do a little studying on Javascript to be able to do all the things you're going to want to do ... but Javascript is the only technology (I'm aware of) that is presently capable of opening secondary browser windows and manipulating objects within them, so whatever solution you choose to implement, it will probably be based on Javascript.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Read about why website design really matters in today's demanding market.
FAQ pages provide a simple way for you to supply and for customers to find answers to the most common questions about your company. Here are six reasons why your company website should have a FAQ page
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.

821 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