質問

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