Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

openning a new, smaller window command

Posted on 1997-05-27
5
Medium Priority
?
264 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 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

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

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

Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
Without even knowing it, most of us are using web applications on a daily basis.  In fact, Gmail and Yahoo email, Twitter, Facebook, and eBay are used by most of us daily—and they are web applications. We generally confuse these web applications to…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.
Suggested Courses

824 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