|
-
Apr 17th, 2001, 03:10 AM
#1
Thread Starter
Lively Member
-
Apr 18th, 2001, 12:41 AM
#2
Thread Starter
Lively Member
THanks for the reply You answered my question and gave me a great idea.
But can I also ask.
HTML Page :
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<TITLE></TITLE>
</HEAD>
<Script Language = "Vbscript">
sub select1_onchange
msgbox select1.value
End Sub
</Script>
<BODY>
<P> </P>
<Script language = "javascript" src = "comb.js"> </Script>
</BODY>
</HTML>
----------------------------------------------------------------
comb.js
document.writeln('<SELECT id=select1 name=select1>')
document.writeln('<OPTION value = "one"> 1 </OPTION>')
document.writeln('<OPTION value = "two"> 2 </OPTION>')
document.writeln('<OPTION value = "three"> 3 </OPTION>')
document.writeln('</SELECT>')
-----------------------------------------------------------------
P.S sorry about the spacing.
The HTML page vbscript works. But how will I do the same in Javascript. I tried puting a function in the .js file but it doesn't work. How do I reference the select1 box?
Thanks
-
Apr 18th, 2001, 01:28 AM
#3
Thread Starter
Lively Member
I GOT IT 
Just put a onchange function in the .js file. It works
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|