•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 397,610 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,548 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 686 | Replies: 1
![]() |
•
•
Join Date: Sep 2007
Posts: 3
Reputation:
Rep Power: 0
Solved Threads: 0
Hi,
I am trying following code to update the onClick event of an html button sitting in my asp.net page.
VB.NET code
Page.RegisterStartupScript("AutoFillScript", _
"<script language=javascript> function test(){ document.getElementById('printPage').onclick = ""PrintHtml('http:// someURL.html')"";}")
btnSubmit.Attributes.Add("onClick", "test()")
I want that when someone click submit button URL "http:// someURL.html" be assigned to html button with id printPage
Any idea will be helpful for me
thanks
I am trying following code to update the onClick event of an html button sitting in my asp.net page.
VB.NET code
Page.RegisterStartupScript("AutoFillScript", _
"<script language=javascript> function test(){ document.getElementById('printPage').onclick = ""PrintHtml('http:// someURL.html')"";}")
btnSubmit.Attributes.Add("onClick", "test()")
I want that when someone click submit button URL "http:// someURL.html" be assigned to html button with id printPage
Any idea will be helpful for me
thanks
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb JavaScript / DHTML / AJAX Marketplace
- how can i pass a value from java script to JSP scriplet (JSP)
- Java script errors with IE & Mozilla (Web Browsers)
- Java Script new line (JavaScript / DHTML / AJAX)
- FireFox config setting through Java Script (Community Introductions)
- How to Embed CheckList Box on HTML Page using Java Script (HTML and CSS)
- A question on java script?(Please answer ASAP) (Java)
- embedding java script in php (PHP)
- java script for main menu (ASP)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: delete and backspace
- Next Thread: 2 Websites...1 IP



Linear Mode