blackcell Posted October 21, 2008 Share Posted October 21, 2008 I am trying to document.write("Text") to a div. Is there a different function to do this or parameters? I can't seem to find anything that I can modify (and work) to accomplish this. Quote Link to comment https://forums.phpfreaks.com/topic/129468-solved-directing-documentwrite-to-div/ Share on other sites More sharing options...
F1Fan Posted October 21, 2008 Share Posted October 21, 2008 document.<whatever your div is>.innerText = "Text"; Or document.<whatever your div is>.innerHTML = "Text"; Quote Link to comment https://forums.phpfreaks.com/topic/129468-solved-directing-documentwrite-to-div/#findComment-671198 Share on other sites More sharing options...
blackcell Posted October 23, 2008 Author Share Posted October 23, 2008 That great man. Now what about an input box? Quote Link to comment https://forums.phpfreaks.com/topic/129468-solved-directing-documentwrite-to-div/#findComment-672781 Share on other sites More sharing options...
F1Fan Posted October 23, 2008 Share Posted October 23, 2008 document.<whatever your div is>.value = "Text"; Quote Link to comment https://forums.phpfreaks.com/topic/129468-solved-directing-documentwrite-to-div/#findComment-672784 Share on other sites More sharing options...
F1Fan Posted October 23, 2008 Share Posted October 23, 2008 Sorry, I meant: document.<whatever your input is>.value = "Text"; Quote Link to comment https://forums.phpfreaks.com/topic/129468-solved-directing-documentwrite-to-div/#findComment-672785 Share on other sites More sharing options...
blackcell Posted October 23, 2008 Author Share Posted October 23, 2008 Thanks Quote Link to comment https://forums.phpfreaks.com/topic/129468-solved-directing-documentwrite-to-div/#findComment-672792 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.