Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes HTML, CSS and JavaScript and the fly likes javascript and Iframe Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "javascript and Iframe" Watch "javascript and Iframe" New topic
Author

javascript and Iframe

Eduardo Plata
Greenhorn

Joined: Nov 19, 2004
Posts: 17
Hi,
i have an iframe called cc, and with a combo box outside the iframe, i want to jump to a marker # within the iframe document.

I am trying something like:


The marker is called 2 and the document.xml is displayed by the browser with a xsl.

Using an <a href, the code works fine, but on my combo using onclick and calling a page that is displaying in the current frame is not working, but if i change the page like "document2.xml#4" it works fine..

Thanks
 
GeeCON Prague 2014
 
subject: javascript and Iframe