Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Javascript
newbie - simple passing of parameter to function problem
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Steve, post: 4913965"] I have the following function in my .net page <script language=javascript> function selectFile(fileUrl) { if(navigator.appName.indexOf('Microsoft')!=-1) window.returnValue=fileUrl; else window.opener.setAssetValue(fileUrl); self.close(); } </script> and the following code in the page <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> <input id="Button1" type="button" value="button" onclick="selectFile('textbox1value')"/> I want the user entry in TextBox1 to be sent as the parameter of the selectFile function for the onclick event of the button. i.e. for the user to enter something into TextBox1, and then to click on the button. The text he enters into TextBox1 will be used for the Parameter of the selectFile function. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Javascript
newbie - simple passing of parameter to function problem
Top