Jump to content

JS Method?


Guest chaobreederxl

Recommended Posts

Guest chaobreederxl

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

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...