i have this in left frame and i want the result in other frame and i tried a lot but nothing work for me , any help with that?

<script type="text/javascript">
    function goToPage() {
        var page = document.getElementById('datepicker').value;
        window.location = "http://example.com";
    }
</script>

<p><b><font color="#FF0000" size="4">Date:</font></b> 
<input type="text" id="datepicker" size="20" name="datepicker" value="Date Field" maxlength="8"><input type="submit" value="submit" onclick="goToPage();" /></a></p>

没有正确的解决方案

其他提示

You need a reference to the iframe where you want to load the url.

Assuming your target iframe id is 'targetIframe' and that jQuery is loaded on all iframes, you could do this from another iframe:

var iframe = window.top.$('#targetIframe');
iframe.attr('src', url);

You could also do:

iframe.contentWindow.location = url;
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top