thibo1025 Posted February 2, 2006 Share Posted February 2, 2006 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 More sharing options...
smiles Posted February 3, 2006 Share Posted February 3, 2006 html doesn't have window.open function ??? Link to comment Share on other sites More sharing options...
thibo1025 Posted February 3, 2006 Author Share Posted February 3, 2006 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 More sharing options...
smiles Posted February 3, 2006 Share Posted February 3, 2006 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.<{POST_SNAPBACK}> http://www.w3schools.com/js/tryit.asp?file...ryjs_openwindow Link to comment Share on other sites More sharing options...
thibo1025 Posted February 3, 2006 Author Share Posted February 3, 2006 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 More sharing options...
aspnetguy Posted February 3, 2006 Share Posted February 3, 2006 window.open(''page.htm,'pagename', should be window.open('page.htm','pagename', The (') are supposed enclose the page location 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