| | |
Javascript onclick events problem
Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
Hello all,
I have this code in an iframe
it works fine but i need it to taget another iframe on the page and change that iframe and go back in its own iframe
Thanks in advance.
I have this code in an iframe
html Syntax (Toggle Plain Text)
<FORM><INPUT TYPE="BUTTON" VALUE="Go Back" ONCLICK="history.go(-1)"></FORM>
it works fine but i need it to taget another iframe on the page and change that iframe and go back in its own iframe
Thanks in advance.
Last edited by peter_budo; Nov 2nd, 2008 at 5:46 am. Reason: Keep It Organized - please use [code] tags
Am not sure if this is what you need.
html Syntax (Toggle Plain Text)
<!-- Assuming that this the targeted frame in your page --> <iframe id="frame1" src="myPage.html" width="700" height="700"></iframe> <FORM><INPUT TYPE="BUTTON" VALUE="Go Back" ONCLICK="document.getElementById('frame1').contentWindow.location = 'someLocation.html';"></FORM> <!-- Just another option --> <FORM><INPUT TYPE="BUTTON" VALUE="Go Back" ONCLICK="document.getElementById('frame1').src = 'someLocation.html';"></FORM>
![]() |
Similar Threads
- javascript in mozilla firefox (JavaScript / DHTML / AJAX)
- IE7 document.getElementById problem (JavaScript / DHTML / AJAX)
- ONCLICK or HREF ? (JavaScript / DHTML / AJAX)
- javascript works in IE but not working in firefox (JavaScript / DHTML / AJAX)
- How does IE determine a popup? (JavaScript / DHTML / AJAX)
- Unwanted data injected into datagrid textbox (ASP.NET)
- onClick Events to Change to dynamic text (HTML and CSS)
- Javascript event & color change problem (JavaScript / DHTML / AJAX)
- Printing using Web Control Print button. (ASP.NET)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: Change the background of "active" button
- Next Thread: A text hiperlink on image
| Thread Tools | Search this Thread |
Tag cloud for JavaScript / DHTML / AJAX
ajax ajaxcode ajaxhelp animate api automatically beta boarder box bug calendar captchaformproblem card checkbox child class column cookies createrange() css cursor dependent disablefirebug dom download dropdown editor element engine error events explorer ext file firehose flash form forms google gwt html htmlform ie8 iframe image() images internet java javascript jawascriptruntimeerror jquery jsf jsfile jump math matrixcaptcha microsoft mimic mp3 mysql object offline onmouseoutdivproblem onreadystatechange parent passing pdf php player post problem progressbar rated rating regex runtime scroll search select session shopping size sql star stars stretch text textarea twitter validation w3c web website window windowofwords windowsxp wysiwyg xml xspf \n





