How can I do something as follows:
Code:
<div id='resultDIV' onload='funcX()'></div>
Through jquery I tried the following, but unsuccessfull.
Code:
$("#resultsDIV").load(function() { alert("The div has been loaded."); });
<div id='resultDIV' onload='funcX()'></div>
$("#resultsDIV").load(function() { alert("The div has been loaded."); });
<html> <body> <script type="text/javascript"> var a,b,c,d,e,f; var set1=[a,b,c]; var set2=[d,e,f]; var comboAll=[set1,set2]; function initializeVars(){ for (var i=0; i<comboAll.length;i++){
<div id='results'></div> document.getElementById('results').innerHTML = a + ' ' + b + ' ' + c + ' ' + d + ' ' + e + ' ' + f;
<html> <body> <script type="text/javascript"> var a,b,c,d,e,f; var set1=[a,b,c]; var set2=[d,e,f]; var
Page1.html
var UserName; //declared global function1(UName) // this function is called onLoad event and UName is passed { UserName = UName; } function2() { -->//how to get the value of UserName here which is set in above function }
<a onclick='document.getElementById('mapimage').src=http://xyz.com?citymap=abc">
<IMG ID="mapimage" NAME="mapimage" SRC="<%Response.Write(ImgName)%>"
document.getElementById[B]("link").[/B]src="test.png"
Leave a comment: