<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1003225" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1003225</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/targetnew-option-tag#comment-1014238</link>
    <description> &lt;p&gt;Hi Carole,&lt;/p&gt;
&lt;p&gt;   That&#039;s it except for 2 things:&lt;/p&gt;
&lt;p&gt;1) the opening select tag.&lt;/p&gt;
&lt;p&gt;&amp;lt;FORM name=&quot;guideform&quot;&amp;gt;&lt;br /&gt;
&amp;lt;SELECT name=&quot;someName&quot; size=&quot;1&quot; onChange=&quot;doSel(this)&quot;&amp;gt;&lt;br /&gt;
&amp;lt;OPTION VALUE=&quot; &#039;https://ssl.securesites.com/1724/order.html&#039; target=&#039;_new&#039; &quot;&amp;gt;Alternate Order Form&lt;br /&gt;
&amp;lt;OPTION VALUE = ....etc...&lt;br /&gt;
...more options....&lt;br /&gt;
&amp;lt;/SELECT&amp;gt;&lt;br /&gt;
&amp;lt;/FORM&amp;gt;&lt;/p&gt;
&lt;p&gt;2) The option values should look like the one below.&lt;/p&gt;
&lt;p&gt;value = &quot;location.href=&#039;https://ssl.securesites.com/1724/order.html target=_new&#039;&quot;&lt;/p&gt;
&lt;p&gt;You need the &quot;location.href=&quot; so that the eval() method in the doSel() function has a command to execute.  You need to put the url &amp;amp; target within single quotes because they should be a string for the location.href. Finally, you need double quotes around everything because you need a string for the option&#039;s value.  Confused?  Don&#039;t worry read it through again...and again.&lt;/p&gt;
&lt;p&gt;btw: never thought of myself as funny. intimidating, yea; amusing definitely; funny, no.&lt;/p&gt;
&lt;p&gt;Vinny&lt;/p&gt;
&lt;p&gt;------------------&lt;br /&gt;
my site:&lt;a href=&quot;http://members.aol.com/grassblad&quot; class=&quot;bb-url&quot;&gt;GrassBlade: cut&amp;amp;paste javascript&lt;/a&gt;&lt;br /&gt;
moderator at:&lt;a href=&quot;http://www.javaplace.co.uk&quot; class=&quot;bb-url&quot;&gt;The Javascript Place&lt;/a&gt;&lt;br /&gt;
&lt;A target=&quot;_blank&quot;&gt;Javascript City&lt;/a&gt;&lt;/p&gt;
 </description>
     <pubDate>Sun, 25 Jun 2000 03:02:00 +0000</pubDate>
 <dc:creator>Vincent Puglia</dc:creator>
 <guid isPermaLink="false">comment 1014238 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/targetnew-option-tag#comment-1014237</link>
    <description> &lt;p&gt;Vincent, you&#039;re so funny!  Thanks for being so nice here.  I catch on pretty quick, although it seems my questions come up LONG after everyone else has moved on to something else!&lt;/p&gt;
&lt;p&gt;Here&#039;s the top of my script now:&lt;/p&gt;
&lt;p&gt;&amp;lt;SCRIPT LANGUAGE=&quot;JavaScript&quot;&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;!-- Hide from old browsers&lt;br /&gt;
function linkto(n) {&lt;br /&gt;
    window.location=document.forms[0][n].options[document.forms[0][n].selectedIndex].value;&lt;br /&gt;
  }&lt;br /&gt;
// Stop hiding from old browsers --&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;/SCRIPT&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;FORM name=&quot;guideform&quot;&amp;gt;&lt;br /&gt;
&amp;lt;select...&lt;br /&gt;
&amp;lt;option.... etc.&lt;/p&gt;
&lt;p&gt;So, if I understand correctly it SHOULD look like this:&lt;/p&gt;
&lt;p&gt;&amp;lt;SCRIPT LANGUAGE=&quot;JavaScript&quot;&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;!-- Hide from old browsers&lt;br /&gt;
function doSel(selObj)&lt;br /&gt;
{&lt;br /&gt;
for (i = 0; i &amp;lt; selObj.length; i++)&lt;br /&gt;
if (selObj.options[i].selected)&lt;br /&gt;
eval(selObj.options[i].value):&lt;br /&gt;
}&lt;br /&gt;
// Stop hiding from old browsers --&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;/SCRIPT&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;FORM name=&quot;guideform&quot;&amp;gt;&lt;br /&gt;
&amp;lt;OPTION VALUE=&quot; &#039;https://ssl.securesites.com/1724/order.html&#039; target=&#039;_new&#039; &quot;&amp;gt;Alternate Order Form&lt;br /&gt;
&amp;lt;OPTION VALUE=&quot;http://KnifeDealer.net/c2/company-info.shtml&quot;&amp;gt;Company Info&lt;br /&gt;
&amp;lt;OPTION VALUE=&quot;http://KnifeDealer.net/c2/knifemakers.shtml&quot;&amp;gt;Contact Manufacturers&lt;br /&gt;
&amp;lt;OPTION VALUE=&quot;http://KnifeDealer.net/c2/testimonials.shtml&quot;&amp;gt;Customer Comments&lt;br /&gt;
&amp;lt;OPTION VALUE=&quot; &#039;http://2kcut.com/ICQ/comm_center.html&#039; target=&#039;_new&#039; &quot;&amp;gt;ICQ Status / Communications&lt;br /&gt;
&amp;lt;OPTION VALUE=&quot;http://KnifeDealer.net/c2/links.shtml&quot;&amp;gt;Links Page One&lt;br /&gt;
&amp;lt;OPTION VALUE=&quot; &#039;http://www.wunderground.com/US/TX/Fort_Worth.html&#039; target=&#039;_new&#039; &quot;&amp;gt;Weather&lt;br /&gt;
&amp;lt;/SELECT&amp;gt;&lt;br /&gt;
&amp;lt;/FORM&amp;gt;&lt;br /&gt;
&amp;lt;!--end pull down menu code--&amp;gt;&lt;/p&gt;
&lt;p&gt;Is that right now?  (obviously I have lots of&lt;br /&gt;
options on my pulldown, but only used a few for illustration purposes.)&lt;/p&gt;
&lt;p&gt;Hope so... &lt;/p&gt;
&lt;p&gt;~ Carole&lt;/p&gt;
 </description>
     <pubDate>Fri, 23 Jun 2000 12:59:00 +0000</pubDate>
 <dc:creator>tiny</dc:creator>
 <guid isPermaLink="false">comment 1014237 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/targetnew-option-tag#comment-1014236</link>
    <description> &lt;p&gt;Hi Carole,&lt;/p&gt;
&lt;p&gt;  No  &lt;img src=&quot;http://www.webmaster-forums.com/ubb/smile.gif&quot; alt=&quot;&quot; class=&quot;bb-image&quot; /&gt; the select goes first the options second:&lt;/p&gt;
&lt;p&gt;  &amp;lt;select ...... onChange=&quot;doSel(this)&quot;&amp;gt;&lt;br /&gt;
  &amp;lt;option ......&amp;gt; Order form&amp;lt;/option&amp;gt;&lt;br /&gt;
  &amp;lt;option....etc....&lt;br /&gt;
  ...etc...&lt;br /&gt;
  &amp;lt;/select&amp;gt;&lt;/p&gt;
&lt;p&gt; Yes, replace your onChange with mine. place the doSel() function between &amp;lt;script&amp;gt; tags in between the &amp;lt;head&amp;gt; tags.  &lt;/p&gt;
&lt;p&gt;  Did you read the &quot;Select &amp;amp; Go Menus&quot; script?  It demonstrates &amp;amp; explains how to build 2 types of selection list menus ( with and without the &#039;go&#039; button). The doSel() function is part of the non-go button solution.&lt;/p&gt;
&lt;p&gt;  Flame? Fire? Smoke? where?? or are you asking me to dye your hair red?  &lt;img src=&quot;http://www.webmaster-forums.com/ubb/smile.gif&quot; alt=&quot;&quot; class=&quot;bb-image&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Vinny&lt;/p&gt;
&lt;p&gt;------------------&lt;br /&gt;
my site:&lt;a href=&quot;http://members.aol.com/grassblad&quot; class=&quot;bb-url&quot;&gt;GrassBlade: cut&amp;amp;paste javascript&lt;/a&gt;&lt;br /&gt;
moderator at:&lt;a href=&quot;http://www.javaplace.co.uk&quot; class=&quot;bb-url&quot;&gt;The Javascript Place&lt;/a&gt;&lt;br /&gt;
&lt;A target=&quot;_blank&quot;&gt;Javascript City&lt;/a&gt;&lt;/p&gt;
 </description>
     <pubDate>Fri, 23 Jun 2000 12:27:00 +0000</pubDate>
 <dc:creator>Vincent Puglia</dc:creator>
 <guid isPermaLink="false">comment 1014236 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/targetnew-option-tag#comment-1014235</link>
    <description> &lt;p&gt;Vincent, thank you for your help here.&lt;br /&gt;
Do you mind if I break this down a little so I&#039;m sure I understand?&lt;/p&gt;
&lt;p&gt;I&#039;m sorry to do this, but it&#039;s the only way I know how to insure that I don&#039;t mess it up and have to bug you again...&lt;/p&gt;
&lt;p&gt;Here&#039;s my script, with yours where I think it goes, but I&#039;m still a little confused.  (Yours is in bold.)&lt;/p&gt;
&lt;p&gt;&amp;lt;script language....blah blah...&lt;/p&gt;
&lt;p&gt;&amp;lt;/SCRIPT&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;FORM name=&quot;guideform&quot;&amp;gt;&lt;br /&gt;
&lt;strong&gt;&lt;br /&gt;
&amp;lt;OPTION VALUE = &quot; &#039;https://ssl.securesites.com/1724/order.html&#039; target=&#039;_new&#039; &quot;&amp;gt;Alternate Order Form&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;select ....onChange=&quot;doSel(this)&quot;&amp;gt;&lt;/p&gt;
&lt;p&gt;function doSel(selObj)&lt;br /&gt;
{&lt;br /&gt;
for (i = 0; i &amp;lt; selObj.length; i++)&lt;br /&gt;
if (selObj.options[i].selected)&lt;br /&gt;
eval(selObj.options[i].value):&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;&amp;lt;SELECT NAME=&quot;guidelinks&quot; SIZE=&quot;1&quot; onChange=&quot;window.location=document.guideform.guidelinks.options[document.guideform.guidelinks.selectedIndex].value&quot;&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;OPTION VALUE=&quot;https://ssl.securesites.com/1724/order.html&quot; target=&quot;_new&quot;&amp;gt;Alternate Order Form&lt;/p&gt;
&lt;p&gt;&amp;lt;OPTION VALUE =&quot;http://KnifeDealer.net/c2/company-info.shtml&quot;&amp;gt;Company Info&lt;br /&gt;
&amp;lt;OPTION VALUE=&quot;http://KnifeDealer.net/c2/knifemakers.shtml&quot;&amp;gt;Contact Manufacturers&lt;br /&gt;
&amp;lt;OPTION VALUE=&quot;http://KnifeDealer.net/c2/testimonials.shtml&quot;&amp;gt;Customer Comments&lt;br /&gt;
&amp;lt;OPTION VALUE =&quot;http://2kcut.com/ICQ/comm_center.html&quot; target=&quot;_new&quot;&amp;gt;ICQ Status / Communications&lt;br /&gt;
&amp;lt;OPTION VALUE=&quot;http://KnifeDealer.net/c2/links.shtml&quot;&amp;gt;Links Page One&lt;/p&gt;
&lt;p&gt;&amp;lt;OPTION VALUE=&quot;http://www.wunderground.com/US/TX/Fort_Worth.html&quot; target=&quot;_new&quot;&amp;gt;Weather&lt;br /&gt;
&amp;lt;/SELECT&amp;gt;&lt;br /&gt;
&amp;lt;/FORM&amp;gt;&lt;br /&gt;
&amp;lt;!--end pull down menu code--&amp;gt;&lt;/p&gt;
&lt;p&gt;Now I realize you put the actual url as&lt;br /&gt;
&#039; &quot;http...&quot; &#039; ~ that I get.&lt;/p&gt;
&lt;p&gt;But where you have the option first, then select last, do I put ALL my options before this select?&lt;/p&gt;
&lt;p&gt;2nd question:  Does the select you gave me replace the select I already had?&lt;/p&gt;
&lt;p&gt;3rd question:  (Please don&#039;t flame me if this is the wrong forum.) Is the &quot;go&quot; button an absolute must?  I mean, mine works without it, but does it work on all systems with all browsers?  I want to make it as easy as possible for all visitors.&lt;/p&gt;
&lt;p&gt;With that...  thanks ever so much!&lt;/p&gt;
&lt;p&gt;~ Carole&lt;/p&gt;
&lt;p&gt;------------------&lt;br /&gt;
&lt;strong&gt;Knives, cutlery  &amp;amp; sharpeners: &lt;/strong&gt; &lt;a href=&quot;http://KnifeDealer.net&quot; class=&quot;bb-url&quot;&gt;KnifeDealer.net&lt;/a&gt;&lt;br /&gt;
....always looking for related subject banner/link exchanges.&lt;/p&gt;
 </description>
     <pubDate>Fri, 23 Jun 2000 12:18:00 +0000</pubDate>
 <dc:creator>tiny</dc:creator>
 <guid isPermaLink="false">comment 1014235 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/targetnew-option-tag#comment-1014234</link>
    <description> &lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;  This is how I would code it:&lt;/p&gt;
&lt;p&gt;&amp;lt;OPTION VALUE = &quot; &#039;https://ssl.securesites.com/1724/order.html&#039; target=&#039;_new&#039; &quot;&amp;gt;Alternate Order Form&lt;/p&gt;
&lt;p&gt;&amp;lt;select ....onChange=&quot;doSel(this)&quot;&amp;gt;&lt;/p&gt;
&lt;p&gt;function doSel(selObj)&lt;br /&gt;
{&lt;br /&gt;
  for (i = 0; i &amp;lt; selObj.length; i++)&lt;br /&gt;
   if (selObj.options[i].selected)&lt;br /&gt;
     eval(selObj.options[i].value):&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;The beauty of such an approach is:&lt;br /&gt;
  1) it will work with multiple as well as single selection lists&lt;br /&gt;
  2) you can embed any valid statement within the value.&lt;/p&gt;
&lt;p&gt;   If you would like more explaination, see the &quot;Select &amp;amp; Go Menus&quot; script at my site (or any of the select list scripts for that matter)&lt;/p&gt;
&lt;p&gt;  Re the switch statement: I use it a lot; it comes in very handy for certain situations.&lt;/p&gt;
&lt;p&gt;Vinny&lt;/p&gt;
&lt;p&gt;------------------&lt;br /&gt;
my site:&lt;a href=&quot;http://members.aol.com/grassblad&quot; class=&quot;bb-url&quot;&gt;GrassBlade: cut&amp;amp;paste javascript&lt;/a&gt;&lt;br /&gt;
moderator at:&lt;a href=&quot;http://www.javaplace.co.uk&quot; class=&quot;bb-url&quot;&gt;The Javascript Place&lt;/a&gt;&lt;br /&gt;
&lt;A target=&quot;_blank&quot;&gt;Javascript City&lt;/a&gt;&lt;/p&gt;
 </description>
     <pubDate>Fri, 23 Jun 2000 02:35:00 +0000</pubDate>
 <dc:creator>Vincent Puglia</dc:creator>
 <guid isPermaLink="false">comment 1014234 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/targetnew-option-tag#comment-1014233</link>
    <description> &lt;p&gt;I am never good with if else statements especially when there are a bunch of else&#039;s, so I found this to be muhc less confusing for ppl like me (easily confused).  Only thing is that it&#039;s only supported by JavaScript 1.2 and up or IE 4+ and NN 4+&lt;/p&gt;
 </description>
     <pubDate>Thu, 22 Jun 2000 15:25:00 +0000</pubDate>
 <dc:creator>Arielladog</dc:creator>
 <guid isPermaLink="false">comment 1014233 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/targetnew-option-tag#comment-1014232</link>
    <description> &lt;p&gt;Arielladog, I don&#039;t see too many scripters out there that use switch statements. I wonder how many people know about them?&lt;/p&gt;
 </description>
     <pubDate>Thu, 22 Jun 2000 14:35:00 +0000</pubDate>
 <dc:creator>Lloyd Hassell</dc:creator>
 <guid isPermaLink="false">comment 1014232 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/targetnew-option-tag#comment-1014230</link>
    <description> &lt;p&gt;Thanks, Arielladog.&lt;/p&gt;
&lt;p&gt;Now, will this mean ALL links in the pulldown&lt;br /&gt;
menu will open in new windows?  Because&lt;br /&gt;
that&#039;s not really the plan.&lt;/p&gt;
&lt;p&gt;Take a look at the pulldown menu on my site.&lt;br /&gt;
(link on sig here)&lt;/p&gt;
&lt;p&gt;There are over 40 items, but only two should&lt;br /&gt;
be open in a new window.&lt;/p&gt;
&lt;p&gt;If this can&#039;t be done on the one line of code&lt;br /&gt;
then I&#039;ll just move them to another area.&lt;/p&gt;
&lt;p&gt;~ Carole&lt;/p&gt;
&lt;p&gt;------------------&lt;br /&gt;
&lt;strong&gt;Knives, cutlery  &amp;amp; sharpeners: &lt;/strong&gt; &lt;a href=&quot;http://KnifeDealer.net&quot; class=&quot;bb-url&quot;&gt;KnifeDealer.net&lt;/a&gt;&lt;br /&gt;
....always looking for related subject banner/link exchanges.&lt;/p&gt;
 </description>
     <pubDate>Wed, 21 Jun 2000 15:16:00 +0000</pubDate>
 <dc:creator>tiny</dc:creator>
 <guid isPermaLink="false">comment 1014230 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/targetnew-option-tag#comment-1014229</link>
    <description> &lt;p&gt;I&#039;m assuming you want the links to appear in a new window...correct?  If so, just change this (with changes marked in bold):&lt;/p&gt;
&lt;p&gt;function linkto(n) {&lt;br /&gt;
    &lt;strong&gt;place&lt;/strong&gt;=document.forms[0][n].options[document.forms[0][n].selectedIndex].value;&lt;br /&gt;
    &lt;strong&gt;window.open(place);&lt;/strong&gt;&lt;br /&gt;
  }&lt;/p&gt;
 </description>
     <pubDate>Wed, 21 Jun 2000 15:12:00 +0000</pubDate>
 <dc:creator>Arielladog</dc:creator>
 <guid isPermaLink="false">comment 1014229 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/targetnew-option-tag#comment-1014228</link>
    <description> &lt;p&gt;Obviously, this is a no-no, right?&lt;br /&gt;
Well, that&#039;s what the HTML Validator says.&lt;/p&gt;
&lt;p&gt;Here&#039;s what I have:&lt;/p&gt;
&lt;p&gt;&amp;lt;OPTION VALUE=&quot;https://ssl.securesites.com/1724/order.html&quot; target=&quot;_new&quot;&amp;gt;Alternate Order Form&lt;/p&gt;
&lt;p&gt;And this is what HTML Validator says:&lt;/p&gt;
&lt;p&gt;The TARGET attribute is not valid for the OPTION tag. The valid attributes for this tag are: CLASS, DIR, DISABLED, ID, LABEL, LANG, LANGUAGE, onClick, onDblClick, onKeyDown, onKeyPress, onKeyUp, onMouseDown, onMouseMove, onMouseOut, onMouseOver, onMouseUp, SELECTED, STYLE, TITLE, and VALU&lt;/p&gt;
&lt;p&gt;I&#039;m sure one of the attributes listed is what&lt;br /&gt;
I should be using, but if I understood them&lt;br /&gt;
all, I wouldn&#039;t be here   &lt;img src=&quot;http://www.webmaster-forums.com/ubb/confused.gif&quot; alt=&quot;&quot; class=&quot;bb-image&quot; /&gt;&lt;/p&gt;
&lt;p&gt;...as always, appreciate your time.&lt;/p&gt;
&lt;p&gt;~ Carole&lt;/p&gt;
&lt;p&gt; &lt;a href=&quot;http://KnifeDealer.net&quot; class=&quot;bb-url&quot;&gt;http://KnifeDealer.net&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;[This message has been edited by tiny (edited 21 June 2000).]&lt;/p&gt;
 </description>
     <pubDate>Wed, 21 Jun 2000 11:28:00 +0000</pubDate>
 <dc:creator>tiny</dc:creator>
 <guid isPermaLink="false">comment 1014228 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
