javascript - How to perform query string on the page loaded inside a div -
my case simple, loading page in div shown below. parent.html page contains loadpage() function load child page in includedcontent
div element. parent.html url has parameter append it.
parent.html?data=123
<script> function loadpage() { $("#includedcontent").load("child.html",{data1='one'}); } </script>
as expected child page loaded inside div , performing querystring @ child page body onload event, in both location.search
, window.location.href
returns query of parent page data=123
expected content data1='one'
, how url content of child page.
Comments
Post a Comment