?
Solved

openning a new, smaller window command

Posted on 1997-05-27
5
Medium Priority
?
262 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 240 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

Get MongoDB database support online, now!

At Percona’s web store you can order your MongoDB database support needs in minutes. No hassles, no fuss, just pick and click. Pay online with a credit card. Handle your MongoDB database support now!

Question has a verified solution.

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

CTAs encourage people to do something specific to show interest in your company, product or service. Keep reading to learn why CTAs should always be thought of as extremely important, albeit small, sections of websites.
When it comes to security, close monitoring is a must. According to WhiteHat Security annual report, a substantial number of all web applications are vulnerable always. Monitis offers a new product - fully-featured Website security monitoring and pr…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses

777 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