Jump to content

window.open()


thibo1025

Recommended Posts

in an HTML page, I have a problem I want to open a window with the window.open() tagthis is the code I an using to open my window

<form><input type=button value="new window"onClick="myRef = window.open(''page.htm,'pagename','width=*,height=*,toolbar=1,resizable=0');myRef.focus()"></form>

there is no other JS code in my page and the button dose not work. could someone explain me the problem?

Link to comment
Share on other sites

really? it seamed as thought when I look at a page wich explained to me the method.If there is another way to do this could you explain to me how I should do this.

Link to comment
Share on other sites

thanks now I got the trick I tryed this method before thow and it wouldn't work but as I tryed on the editor It should work

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...