Solved

openning a new, smaller window command

Posted on 1997-05-27
5
248 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
Comment Utility
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
Comment Utility
Thank you! If I want to use a button or icon etc... do I just reference to this script?
0
 

Author Comment

by:graphics
Comment Utility
Edited text of question
0
 

Author Comment

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

Accepted Solution

by:
jshamlin earned 80 total points
Comment Utility
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 Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
Problem to be resolved in this article Currently, development of website and web application can be done without writing thousands of lines of programming code by hand. Description This can be done through by using a open source framework such …
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…

771 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

14 Experts available now in Live!

Get 1:1 Help Now