Solved

openning a new, smaller window command

Posted on 1997-05-27
5
256 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Accessibility and Usability are two concepts that seem to be closely related.  But, too many people seem to have a distorted perception of them. During last five years, those two words have come to the day-to-day work of almost every web develope…
Any business that wants to seriously grow needs to keep the needs and desires of an international audience of their websites in mind. Making a website friendly to international users isn’t prohibitively expensive and can provide an incredible return…
This video teaches users how to migrate an existing Wordpress website to a new domain.
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…

867 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now