Guest chaobreederxl Posted March 12, 2006 Share Posted March 12, 2006 Hi. I've been using window.open to open windows, but what is the JavaScript Method for opening the same window? Thanks in advance.--CBXL Link to comment Share on other sites More sharing options...
smiles Posted March 12, 2006 Share Posted March 12, 2006 Hi. I've been using window.open to open windows, but what is the JavaScript Method for opening the same window? Thanks in advance.--CBXL<{POST_SNAPBACK}> normally , they can't have the same way to get the same effect with the "same " language Link to comment Share on other sites More sharing options...
scott100 Posted March 12, 2006 Share Posted March 12, 2006 Hi. I've been using window.open to open windows, but what is the JavaScript Method for opening the same window? Thanks in advance.--CBXL<{POST_SNAPBACK}> If you give the window a name when you open it you can then open other pages in it by giving them the same name. In this example i have called it newwindow and used two buttons, each of which can change the page within newwindow.<input type="button" value="Google" onclick='window.open("http://www.google.com","newwindow","height=200,width=400,status=yes,toolbar=no,menubar=no,location=no");' /><input type="button" value="Yahoo" onclick='window.open("http://www.yahoo.com","newwindow","height=200,width=400,status=yes,toolbar=no,menubar=no,location=no");' />Have i understood your question correctly? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now