javascript - How to insert URL parameter in DIV? -


मेरा कोड है

  & lt; a href = "#" target = "_ blank" Class = "floatLeft" onclick = "change ('http: //localhost/allwidgets/widgets.html');" & Gt; फ़ंक्शन परिवर्तन (यूआरएल) {अलर्ट (यूआरएल); document.getElementById ( "mainOuter") innerHTML = url। }  

असल में मैं चाहता हूं कि उस यूआरएल को अंदरूनी एचआईएल के मुख्य ओर से जाना चाहिए और उस पेज को उस में दिखाना चाहिए।

कृपया सुझाव दें ....

< P> धन्यवाद

ऐसा लगता है कि आप वास्तव में एक चाहते हैं:

  & Lt; iframe id = "someIframe" & gt; & lt; / iframe & gt; Document.getElementById ("कुछ आईफ्रेम")। Src = url;  

यदि आप वास्तव में एक DIV के आंतरिक एचटीएमएल को संशोधित करना चाहते हैं, तो आपको वांछित एचटीएमएल प्राप्त करने के लिए एक AJAX अनुरोध का उपयोग करना होगा, फिर आंतरिक एचटीएमएल का उपयोग करना होगा। पुस्तकालय यह आसान बना सकते हैं।


Comments

Popular posts from this blog

php - Login to icq account to receive messages from contact #12345678 -

windows - Heroku throws SQLITE3 Read only exception -

How to get NUnit information into CruiseControl.Net 1.5 after NCover has run NUnit? -