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 / 201
200  |  202
Subject: 
js help
Newsgroups: 
lugnet.publish.html
Date: 
Mon, 21 Jan 2002 20:10:03 GMT
Viewed: 
1952 times
  
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 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 (...) (23 years ago, 22-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
    

Custom Search

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