answersLogoWhite

0

<table>

<th onclick="checkData()">ID</th>

<th onclick="checkData()">Name</th>

</table>

<script type="text/javascript" language="javascript">

function checkData()

{

// Your Javascript code here

alert("It Works");

}

</script>

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

How do you call javascript function from scriplet?

To call a JavaScript function from a JSP (JavaServer Pages) scriptlet, you can use the &lt;script&gt; tag within the scriptlet code. For example: &lt;% out.println(&quot;&lt;script&gt;myJavaScriptFunction();&lt;/script&gt;&quot;); %&gt; This code dynamically generates a &lt;script&gt; tag that calls the specified JavaScript function when the JSP is rendered in the browser. Ensure that the JavaScript function is defined and accessible in the client-side context.


How do you get a window to pop up only after a video finishes using JavaScript or VBscript?

If you are playing the video in Flash you can call a javascript function at the end of the video streaming through getURL. So internally the javascript function will open the pop up window.


How do you call a perl program from javascript?

You can call the Script like this, &lt;script type="text/javascript" src="perl_script.pl"&gt;&lt;/script&gt; So you just replace a regular Javascript Call ( .js ) with the .pl Script. Inside the Perl Script you will have to use embraced Javascript Functions / Code, f.e. like print "document.write.('Hello World');";.


How do you call script code in javascript without using onclick?

function blahblah () { //do something } blahblah();


Can you use JavaScript within the form tag?

You can call an external javascript file or javascript code located inside the head or body tag from a form using event handlers. I am not sure if you can or cannot use javascript code inside form tags but am sure that it is not a good programming practise to put code of two different language (js &amp; html) together


What do you call java and javascript?

Well you get java as java and javascript as iava.


How can I use the mini.split function to separate a string into an array of substrings in JavaScript?

To use the mini.split function in JavaScript to separate a string into an array of substrings, you need to call the split method on the string and provide the delimiter as an argument. This will split the string at each occurrence of the delimiter and return an array of substrings.


How can you call a function given its name as a string?

we have to construct a table of two field structures,where the first field is the funtion name as a string and the second field is just the function name.then search the table to get a string match in the first field and use the second field to call the function.


How can you call a flash file in JavaScript?

what you could do is make the file an HTML file and have embedded Javascript in it. i am not sure how to put a flash file into Javascript though.


Can you program something in Javascript that starts a VBScript?

Yes. Just create a VBScript function/sub in the same document, and since it would be a member of the window object, Javascript would also be able to call it, like so: &lt;script language='vbscript'&gt; sub test() alert("test") end sub &lt;/script&gt; &lt;script language='javascript'&gt; test(); &lt;/script&gt;


How does you call javascript file in css?

In your HTML add in the tags


Multiplication Table in Javascript language?

finding quotient and remainder function table(){var num = parseInt(document.getElementById("num").value);var x =0;var i ;// document.write("tetseo");for(i=1;i