
March 20th, 2007, 05:06 PM
|
|
Contributing User
|
|
Join Date: Aug 2004
Location: UK, London
Posts: 94
Time spent in forums: 14 h 44 m 38 sec
Reputation Power: 9
|
|
|
Maybe like this
It depends what is that different page? A popup window, or just other page in the same window.
1. Popup:
The small changes in my provious function
Code:
function changeLocation(locationUrl)
{
var params ='width='+ 300 +',height='+ 300 +',resizable=yes,scrollbars=yes,menubar=no,statusbar=yes'
var Win = window.open('test3.html','test',params);
Win.document.getElementById('iframetest').src=locationUrl
}
First poping up new window and then passing the value to iframe in that window
2. If another page is supposed to be open after choosing something from the dropdown U just need to send that value by get or post to that page and from there pass it to src of the iframe.
hope now it will help
Regards,
Piotr
|