|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
|
|
#1
|
||||
|
||||
|
writing html content to div tag with javascript
the code:
------------------------ function WriteLayer(ID,parentID,URL) { if (document.layers) { var oLayer; if(parentID){ oLayer = eval('document.' + parentID + '.document.' + ID + '.document'); }else{ oLayer = document.layers[ID].document; } oLayer.open(); oLayer.write(URL); oLayer.close(); } else if (parseInt(navigator.appVersion)>=5&&navigator. appName=="Netscape") { document.getElementById(ID).innerHTML = URL; } else if (document.all) document.all[ID].innerHTML = URL } ------------------------ im using like this: <a href="javascript:WriteLayer('ctd',null,'testing')">blablabla</a> <div class='ctd'></div> ------------------------ may be a spelling problem, but what can i do to put html url (testing.html for example) and not the entire code into a tag? thanks for any help ![]() |
![]() |
| Viewing: Dev Articles Community Forums > Web Design > Web Development > writing html content to div tag with javascript |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|