| | |
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 |
ajax ajaxexample ajaxjspservlets array browser bug captcha captchaformproblem cart checkbox child class close codes cookies createrange() cursor date debugger dependent disablefirebug dom dropdown editor element embed engine enter events explorer ext file firefox form forms frameworks getselection google gxt hiddenvalue highlightedword hint html ie7 ie8 iframe images internet java javascript javascripthelp2020 jquery jsf jsfile jsp jump libcurl maps marquee masterpage math matrixcaptcha media menu object onerror onmouseoutdivproblem onreadystatechange parent paypal pdf php position post programming progressbar prototype rated redirect runtime safari scale scriptlets scroll search security session shopping size software star stars synchronous toggle unicode variables web webservice wysiwyg \n





