To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.publish.htmlOpen lugnet.publish.html in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Publishing / HTML / 202
201  |  203
Subject: 
Re: js help
Newsgroups: 
lugnet.publish.html
Date: 
Tue, 22 Jan 2002 16:27:23 GMT
Viewed: 
2311 times
  
I'm not sure what you're asking; I think I'm used to different terminology than
you're using.  Based on what I think you're asking...

The name of the new window is the second argument passed to window.open.  In
your example, the window name will be "MenuPopup".

The source is determined by what is at the url that you specify as the first
argument.  Are you asking something else here?

The third argument to window.open, which isn't in your example, is a comma
separated feature list. To create a window 400 x 600 pixels, the third argument
would be "height=400,width=600".  Many of the features that can be specified in
this list are browser specific.

John


In lugnet.publish.html, Rob McMurray writes:
Howdy!
I don't know much about javascript (I can decipher some parts) and I need
some assistance.  What I am looking to do is to make a pull down jump menu
that will not only open a new window, but will do so with the javascript
window properties like 'window name','src',window attributes'.  I assume
this is possible.  I have combed the net looking for something similar but I
couldn't find what I wanted.  Here is the code I have right now:

<html>
<head>
<script language="JavaScript">
function formHandler(form) {
var URL = form.site.options[form.site.selectedIndex].value;
popup = window.open(URL,"MenuPopup");
}
//-->
</script>
</head>
<body>
<form name="form">
       <select name=site onChange="formHandler(this.form)">
         <option selected>links</option>
  <option>___lego___</option>
         <option value="http://www.go.to/LegoMC">LegoMC</option>
         <option value="http://www.brickfilms.com">BrickFilms</option>
         <option value="http://www.lugnet.com">LUGNET</option>
         <option value="http://www.ldraw.org">LDraw</option>
</select>
     </form>
</body>
</html>

Any help in this matter would be greatly appreciated.

rob mcmurray



Message has 1 Reply:
  Re: js help
 
I'm sorry for not being more clear- I don't know how to refer to pieces of Javascript. However, you did answer my question and many thanks for it! I was just wondering how to change the properties (window size, etc.) of the new window that the menu (...) (23 years ago, 23-Jan-02, to lugnet.publish.html)

Message is in Reply To:
  js help
 
Howdy! I don't know much about javascript (I can decipher some parts) and I need some assistance. What I am looking to do is to make a pull down jump menu that will not only open a new window, but will do so with the javascript window properties (...) (23 years ago, 21-Jan-02, to lugnet.publish.html)

3 Messages in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR